I'm making a small game where a character jumps some platforms (so he goes up and up and up). How can I make the camera to follow the player only on the y axis (up)? If I put the camera as a child of the player it will follow him on the x axis and it show some out of boundary stuff that I would not want.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
3 People are following this question.
How to deal with repetetive code?
Referring to sliced sprites in Resources by name
Can I make a child not move when the parent does?
Projectile Instantiating at opposite position
How can i make a code that make a emulator of a math function, in 2D?