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 trial

Game Development How to Make a Video Game Player Input and Cameras Make a Follow Camera

Ranvir Sahota
Ranvir Sahota
9,844 Points

What causing the camera delay

I don't want to stop it. I merely wish to understand. Is the cameraFollowSpeed? If so I can't see any visiable changes in speed from 5 to 500. So what is happening here?

1 Answer

Nick Pettit
STAFF
Nick Pettit
Treehouse Teacher

Hi Ranvir,

The cameraFollowSpeed is how fast the camera moves to where the player is located. Lower numbers (less than 5) will make the camera take a lot of time to move, and higher numbers (greater than 5) will make the camera move much faster, to the point of being instantaneous movement that follows the player exactly.