anim_get_totalprogress

Syntax:

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

Returns: (real) The Animation's total progress

Description:

Gets the animations's totalprogress which is a value between 0 and 1 indicating the position of the virtual playhead (including 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.