anim_set_progress(anim, progress);
Argument name Type Description
anim Animation The animation
progress real The value


Sets 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_set_progress() and anim_set_totalprogress() will be different because anim_set_progress() doesn't include the repeat or repeatdelay whereas totalprogress does.