playing = IsAnimPlaying(id)
This function checks if the animation specified by id is currently
playing and returns True if it is, False otherwise.
True if the animation specified by id is playing, False
otherwiseLoadAnim(1, "Gfx/Anims/CoolAnim.anm") PlayAnim(1, #PLAYONCE) playing = IsAnimPlaying(1) While playing = TRUE playing = IsAnimPlaying(1) Wend FreeAnim(1)The above code loads the animation "Gfx/Anims/CoolAnim.anm", plays it and then waits for it to finish. After that, the animation is freed. If you just want to do something like above, it is easier for you to use the WaitAnimEnd() command. But if you want to do some things during the animation is playing, you will have to do it this way (using
IsAnimPlaying() and a loop).