[Solved] Trigger Action on Specific Anim Frame
Blitz3D Forums/Blitz3D Programming/[Solved] Trigger Action on Specific Anim Frame
| ||
how do you synchronize animation and then perform an action/event after a particular animation ends or better on a specific frame. Say Like a walking character then after the end of the current animation sequence you play a sound? I see there's this SetAnimKey but don't know how this would apply. |
| ||
You can get the current animation frame (of the current animation sequence) by using animtime() see : http://www.blitzbasic.com/b3ddocs/command.php?name=AnimTime |
| ||
Thanks! I got confused with 2 animations checking at the same time. I think it should be named AnimFrame instead of AnimTime because it is based on the animation frame. |
| ||
Well, in a way, the time of an animation is counted in frames... |