Making Camera Follow Our Player

Niraj Karki
Sep 15, 2021

2D Mobile Game

Objective: use cinemachine camera to follow player

To follow the player, what you need is to create a virtual camera which will allow us to define the gameobject that our camera needs to follow.

Then rename the created cinemachine camera for easier readability and drag the gameobject you want your camera to follow which in this case is the player in the follow variable.

And this is the final result.

--

--