The
from_end option only affects when switching to a new animation track, or if the same track but at the start or end. It does not affect resuming playback that was paused in the middle of an animation. If
custom_speed is negative and
from_end is
true, the animation will play backwards (which is equivalent to calling
play_backwards).
The
AnimationPlayer keeps track of its current or last played animation with
assigned_animation. If this method is called with that same animation
name, or with no
name parameter, the assigned animation will resume playing if it was paused.
Note: The animation will be updated the next time the
AnimationPlayer is processed. If other variables are updated at the same time this is called, they may be updated too early. To perform the update immediately, call
advance(0).