Animate command speed question

Blitz3D Forums/Blitz3D Programming/Animate command speed question

Craig H. Nisbet(Posted 2004) [#1]
I'm using the animate command for my enitities with sequences on them. Anyway, they animate file, but I'm not sure if they are actually going the intended speed. There is not reference in the docs as to what the speed perameter represents in real time. Does anyone know? does 1 = 1 millisecond, or does 1 = 1/60 of a second? I'm not sure. Anyone know?


GfK(Posted 2004) [#2]
Anim speed of 1 means 1 frame per UpdateWorld.


Craig H. Nisbet(Posted 2004) [#3]
Any Idea how do get a accurate frame rate out of the animate command then? UpdateWorld could happen at any time.


jfk EO-11110(Posted 2004) [#4]
it isn't very clever to use UpdateWorld more than one time per frame IMHO.

You can use Updateworld with a parameter, for example with delta time: the higher the framerate, the lower delta_t#, probably 1.0 with 60Hz.

delta_t#=frametime_in_ms# / 16.667
UpateWorld(delta_t#)