game timing schemes

BlitzMax Forums/BlitzMax Programming/game timing schemes

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Here are a few great reasons to use DeltaT - you can freeze your game! slow down and speed up time!

Just add if keydown(key_space) then deltaT = deltaT * .1 and you run everything at 1/10th the time! This is enormously useful for me as a development tool. Being able to watch something that is fast in the final game in slow motion as I develop is great. You can also just set DeltaT to 0 and freeze time. I also use it for varying time between objects - if the player gets a speed boost powerup I can modify deltaT before they update, and set it back before the ai updates.

Its very easy to use and know where to add the DeltaTs if you practice it, and I think it has enormous advantages over locked framerate timing.