Game Development Community

Something like the game loop

by Garth Wood · in Torque Game Engine · 04/25/2006 (12:49 pm) · 1 replies

Hi

I have made a console function that rotates the camera around the player. At the moment I schedule the function so that it happens every 500ms. This of course causes the camera to jerk.

How and where can I put this so that I can run it as if if was in the game loop function? Which would mean I could use the game time along with a timer to get a smooth rotation.

#1
04/25/2006 (3:09 pm)
Ok, nevermind. I think the code should be placed in the process tick, or advanceTime function in the advanced camera implementation, and then scripted.