GameDevHQ 2.5D Cert Requirements Part 2

Simon Leen
2 min readSep 3, 2021

--

Objective: Setup Cinemachine Camera Follow on Player

As you can see above, we currently don’t have any moving camera system so the Player can leave the scene view and we can’t see the rest of the level. There are many ways to fix this and implement a camera follow system. For this project we will use Cinemachine.

To install Cinemachine, go to Window, Package Manager, search for Cinemachine and install. Next create a virtual camera by going to Cinemachine, Create Virtual Camera. Name the camera if you want, I named it CM PlayerCam. Drag the Player into the Follow attribute in the cameras inspector settings. Because of the way the Player was set up with flipping the animations and Player went you go left the camera goes weird as seen below.

To fix this change the Body, Binding Mode to World Space and the Follow Offset to whatever camera settings you want to suit your view. You can also change the damping settings for camera follow sensitivity. We now have a working follow camera system.

--

--

No responses yet