I am building a 2D platform game, but I want the camera to follow the player/character. I have partitioned the Main Camera under my player, but when I go to move left to right, the camera rotates instead which I do not want. In stead I would like the game to stay 2D, and the character to be able to move left to right and jump with the camera only following the x and y axis of the character. Any help?
–DESCRIPTION----------------------
Picking a thread title that in brief, allows, when read, people to reach the correct people that can provide the correct help, avoids replies like this.
Create an empty game object. Inside it, add a child camera and the player object. When you want to move the player, move the parent game object. ? Otherwise use a script to copy the player position to the camera each frame.