anim_get_progress

Syntax:

anim_get_progress(anim);
Argument name Type Description
anim Animation The animation

Returns: (real) The Animation's progress (from 0 to 1)

Description:

Gets the animations's progress which is a value between 0 and 1 indicating the position of the virtual playhead (excluding repeats) where 0 is at the beginning, 0.5 is at the halfway point, and 1 is at the end (complete).

If the animation has a non-zero repeat defined, anim_get_progress() and anim_get_totalprogress() will be different because anim_get_progress() doesn't include the repeat or repeatdelay whereas totalprogress does.