getIsAnimationFinished() returns 0 on non-cycling animation
by Teromous · in Torque Game Builder · 04/13/2009 (8:27 am) · 1 replies
I'm running a behavior, where I want to call an animation as soon as the previous one is finished. The animation is non-cycling, but getIsAnimationFinished() will not trigger a 1. I tried calling an echo to test it out inside a while loop:
0
0
0
0
0
...etc, so I'm wondering why a non-cycling animation won't pass a 1, and if anyone knows a way to fix this or a workaround.
while(%this.owner.getIsAnimationFinished() == 0)
{
echo(%this.owner.getIsAnimationFinished());
}...which expectantly crashes the game, but the console dump is:0
0
0
0
0
...etc, so I'm wondering why a non-cycling animation won't pass a 1, and if anyone knows a way to fix this or a workaround.
About the author
Torque Owner De Sa Ferreira
I think it is the calculated duration for the animation that screws it up.
Or maybe I am wrong and i was just lucky this time.
If anyone has any hint on this bug please let us (or at least me ;p ) know.
Thank you very much in advance.