I think this is right

Blitz3D Forums/Blitz3D Beginners Area/I think this is right

Another thing to remember is to set the value of 'oldtime' to the current 'MilliSecs()' time both before starting your main loop, and also after returning from a pause.