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.

Thanks everyone

The one thing I've always been confused about with delta timing is when to apply it.

For example...

velx = velx + (mouseXspeed() * 0.25) * deltaT
x = x + velx * deltaT
velx = velx * 0.02 * deltaT

Is this correct? the first line creates my velocity, the second adds it to my position and the third dampens it again. Just an example, but it shows where I get confused by adding deltaT to everything in sight!

Some do's and don'ts for delta would be very welcome!