[Solved] Trigger Action on Specific Anim Frame

Blitz3D Forums/Blitz3D Programming/[Solved] Trigger Action on Specific Anim Frame

RustyKristi(Posted 2016) [#1]
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.


RemiD(Posted 2016) [#2]
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


RustyKristi(Posted 2016) [#3]
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.


RemiD(Posted 2016) [#4]
Well, in a way, the time of an animation is counted in frames...