Transitioning to another animation once complete?

Jun 24, 2011 at 10:37 PM

is there any way to tell when an animation has completed? 

for example, if my player is running, then jumps, and continues to run, I want the run animation (or another animation) to continue when the jump animation completes.  

or is there a better approach to solve this problem?

Jun 25, 2011 at 2:55 PM

AnimationPlayer.Update returns true if you reached the end of the current animation. (So looping animations will never return true.)

There's a function to help smoothing transitions between animations, too. Take a look at AnimationPlayer.TransitionToAnimation. Let me know if you need help with it. :)