anim_set_duration

Syntax:

anim_set_duration(anim, duration);
Argument name Type Description
anim Animation The animation
duration real The duration

Description:

Sets 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).