https://www.youtube.com/watch?v=cqNBA9Pslg8&t=109s&ab_channel=ThatOneUnityDev

https://www.youtube.com/watch?v=cqNBA9Pslg8&t=109s&ab_channel=ThatOneUnityDev

https://www.youtube.com/watch?v=cqNBA9Pslg8&t=109s&ab_channel=ThatOneUnityDev

Create setting

  1. Create a plane or terrain.

Create Main character

  1. Create an Empty Object. Rename it as “Player”.

  2. Drag and drop your sprite into the Unity assets folder.

  3. Drag this sprite into your Player object.

  4. Add a Rigidbody.

  5. Add a Capsule Collider.

  6. Add a Script called MainController.

Screenshot 2023-09-05 at 4.22.28 PM.png

Import Packages (Cinemachine)

  1. Import packages using Window>Package Manager.
  2. Choose the drop-down for Unity Registry or My Assets.
  3. Find Cinemachine under Unity Registry.
  4. Install Cinemachine.

Screenshot 2023-09-05 at 4.15.39 PM.png

Using Cinemachine (Virtual Camera to follow player)

  1. Open Cinemachine from the menu and Create Virtual Camera.
  2. Drag and drop your main character object (”Player”) into the Cinemachine settings (Follow) (Look At).

Screenshot 2023-09-05 at 4.18.01 PM.png

Screenshot 2023-09-05 at 4.18.37 PM.png