Game Development Community

Scrolling Levels

by ARGuy · in Torque Game Builder · 12/28/2006 (10:14 am) · 1 replies

I trying to create a vertical shooter for practice. I'm wondering how to move the camera a certain amount after a period of time has passed. I'd like to create a larger level and then just scroll the camera up, so it looks like the level is scrolling. How would I accomplish this?

#1
12/28/2006 (2:10 pm)
If you look here you'll see the functions to control the camera. SetCurrentCameraPosition should let you scroll the screen. In order to update the screen position at a regular interval you could use schedule(). Just keep calling schedule at the end of the function where you are updating the camera position so that it keeps getting called at a regular interval.