Cinemachine


Now, we're going to make the camera follow the character wherever he wants. Because yesterday's devlog created levels using a tilemap, we will measure the width and length of the entire tilemap


Here we will download the cinemachine package in the package manager and will install it on the camera object. Cinemachine is very easy to use and does not require coding, we only set how big and far the camera is when played.


For the installation of the cinemachine, we must limit the player from going out into a dark or empty area. Therefore, we will create a 2d polygon and arrange the entire tilemap.



Get Game Knight

Leave a comment

Log in with itch.io to leave a comment.