Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJulie Ragnarsson
3,320 PointsThe frog gets stuck if it leaves the camera's view!
When in game mode, if I make my frog hop out of view of the camera it becomes uncontrollable. While stuck, the frog's position coordinates show that the x and z continuously fluctuate (but not by a full hop) even when not given keyboard input. Its rotation's y coordinate also freaks out. Half of the screen will sometimes become darker too. However, this is only a problem when it hops off the left or bottom side of the camera. If it hops out of view on the top or right side, it acts like Nick's frog and can still be controlled as normal. This happens whether the camera is zoomed in, or zoomed out.
I have checked my Main Camera settings in the inspector and they are the same as Nick's and I can't find anything wrong with my code. Can anyone tell me what's going on?
1 Answer
Julie Ragnarsson
3,320 PointsTo Mark I can tell the frog is getting stuck because I look at his XZ coordinate :)
Mark VonGyer
21,239 PointsMark VonGyer
21,239 PointsIf it is outside the camera view, how can you be sure what the frog is or is not doing :)