Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Game Development How to Make a Video Game Player Input and Cameras Rotate the Player Towards the Target

Norbu Wangdi
Norbu Wangdi
7,187 Points

getting better view of the frog "roll the y value of the position"

Everything so far is good. But as in the video, i cannot adjust the camera position. I have gone to "camera" in the hierachy and in inspector window, while game is still playing I have changed the Y value of the position....instead of getting better view of frog and scene, it moves from top to bottom. any help?

Simon Andersson
Simon Andersson
6,880 Points

Make sure you are using the Local setting and not the Global setting. You can see this setting to the left of the play button. You can also switch between these two values with the X shortcut key.

1 Answer

Norbu Wangdi
Norbu Wangdi
7,187 Points

Thank you Simon, Actually i am already on local setting. But till it keeps moving from top to bottom instead.

Simon Andersson
Simon Andersson
6,880 Points

If you're on local setting but still only adjusting the Y axis in the inspector it will go up and down. However, if you instead move the Y axis (green arrow) with your mouse locally, you will notice the the Z axis will probably change as well.

Try using the local setting and then drag the Z axis (blue arrow) isntead of changing the Y axis in the inspector.