Name
IsAnimPlaying -- check if an animation is playing (V1.0 only)
Synopsis
playing = IsAnimPlaying(id)
Function
Attention: This command was removed in Hollywood 1.5.

This function checks if the animation specified by id is currently playing and returns True if it is, False otherwise.

Inputs
id
identifier for an animation
Results
playing
True if the animation specified by id is playing, False otherwise
Example
LoadAnim(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).

Show TOC