anim_get_totalduration

Syntax:

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

Returns: (real) The Animation's total duration

Description:

Gets the total duration of the tween in seconds (or frames for frames-based tweens) including any repeats or repeatdelays. duration, by contrast, does NOT include repeats and repeatdelays. For example, if the tween has a duration of 10, a repeat of 1 and a repeatdelay of 2, the totalduration would be 22.