Key animation frame

Blitz3D Forums/Blitz3D Beginners Area/Key animation frame

Moraldi(Posted 2008) [#1]
Hi,
I don't know how to show an entity to a specified animation frame.

Thanks!


GfK(Posted 2008) [#2]
SetAnimTime()



Ross C(Posted 2008) [#3]
Yeah, it's a strangely named command.

AnimTime() alos returns the current animation FRAME, rather than the time elapsed. Again, strangely named.


Moraldi(Posted 2008) [#4]
According to Blitz3D manual SetAnimTime has three parameters (the third is optional)
The second one, time#, is a floating point number and not an integer.
what is the value of time# if I want to animate an entity to the n-th frame?


GfK(Posted 2008) [#5]
Using a time value of, for example, 3.5, will set the animation to midway between frame 3 and frame 4. You could add a time step of, say, 0.01 to the time parameter to achieve a slow motion effect.

I know I sound like Captain Obvious, but I do see why it might need explaining.


Moraldi(Posted 2008) [#6]
Thanks Gfk :)