Where am I in a animation sequence?

Blitz3D Forums/Blitz3D Programming/Where am I in a animation sequence?

Ok, how does one find the position (frame) in a animation sequence?

Would be nice if the animating command returned the frame rather than true or false.

You'll be wanting AnimTime()

You can also use animSeq to return the current sequence being played.

In general, if you want advanced control over animations use SetAnimTime to animate.

AnimTime (dont think you can get current frame)

although from what ive found it returns a float.. i tried just returning a [int]..i couldnt get it to work.. so i best guess it..i even tried noting the play back rate in lightwave based on 24 fps to see which frame was playing at a certain time..so i guess in principle if you set up a game timer to 30fps set up your playback rate in your 3d package to 30 fps and note the times and anim frames this might help

so if theres a frame in the cycle you want, note the time in your 3d package say its 7.38 secs then use animtime to grab it
cycle=animtime(mesh)
if cycle=7.38 then blah blah blah

..i think that makes sense :)

Tiler, it does return the frame, but it might be one of the generated in-between frames, it's pretty smart, Blitz calculate the frame that fit exactly to the time. I just don't get why it's named AnimTime and not AnimFrame.