gre.animation get state

gre.animation_get_state(name, id)

Get the current state of an animation. Possible states are gre.STATE_NOT_FOUND, gre.STATE_NOT_RUNNING, gre.STATE_PAUSED and gre.STATE_RUNNING.

This function does not differentiate between an animation that has reached completion and an animation that has not started.

Parameters: name The original name of the animation id If the animation was triggered with a specific id, this can be used to find the specific instance of a running animation. Returns: table with state and context keys state this is one of gre.STATE_NOT_FOUND, gre.STATE_NOT_RUNNING, gre.STATE_PAUSED, gre.STATE_RUNNING progress this is a number between 0-1 which describes the current progress of the animation.

Was this article helpful?
0 out of 0 found this helpful