The function below works fine as a play once animation(death anim) SOME of the time but sometimes the character freezes in an upright position and the anim seems to be uncompleted.
The frame begin and frame end variables are declared before the main loop.
Not sure if its a coding problem or physics.anyone help?
Function kill_knight()
Animate(knight,FrameBegin5,1,0,1)
FrameBegin5 = FrameBegin5 + 0.8 * AppSpeed()
If FrameBegin5 >= FrameEnd5
stopanim = True
EndIf
EndFunction