With this function you can check if the current skeletal animation has finished playing on the given track.
NOTE This function will always return false if the animation is set to loop (skeleton_animation_is_looping), as an animation cannot have finished if it is still looping.
skeleton_animation_is_finished(track);
Argument | Data Type | Description |
---|---|---|
track | Real | The index of the animation track |
var _finished = skeleton_animation_is_finished(1);
if (_finished)
{
show_debug_message("The animation has finished playing");
}
The above code first checks if the animation on track 1 has finished playing and stores the result in a local variable _finished. It then shows a debug message in case the animation did finish playing.