anim_get_endtime

Syntax:

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

Returns: (real) The Animation's end time

Description:

Returns the time at which the animation will finish according to the parent timeline's local time. This does factor in the timeScale.

Example:

var tl = tweenline_create();
var tween = tweenline_to(e, 1, ["x", 100]); //create a 1-second tween
tweenline_add(tween, 0.5); //insert the tween at 0.5 seconds into the timeline
show_debug_message(anim_get_endtime(tween)); //1.5
anim_set_timescale(tween, 2); //double the speed of the tween, thus it'll finish in half the normal time
show_debug_message(anim_get_endtime(tween)); //1