Frame limiting

BlitzMax Forums/BlitzMax Programming/Frame limiting

Arrrgghhhhhh... LOL

This allows you to dynamically adjust the game timing.

For example, you initialise the timing with:-
Global Delta1:DeltaTime = DeltaTime.Create(35.0)

You code your game objects and animations based on that setting (35.0).

Now lets say you want to dynamically speed up or slow down the whole game. You can affect the whole game speed by setting the new FPS (maybe wrong name for function but who cares). I do this to great effect in GEOM, when you get a SLOWMO powerup the game speed is 50% of normal ie. SetFPS(NormalSpeed/2).

Cool eh?