anim_get_duration

Syntax:

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

Returns: (real) The Animation duration

Description:

Gets the animation's duration, not including any repeats or repeatdelays. For example, if a tween instance has a duration of 2 and a repeat of 3, its total_duration would be 8 (one standard play plus 3 repeats equals 4 total cycles).