Animation stops on current frame

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By wojtasss

How to stop animation that will back to start frame?

:bust_in_silhouette: Reply From: rakkarage

void stop ( bool reset=true )

Stops or pauses the currently playing animation. If reset is true, the animation position is reset to 0 and the playback speed is reset to 1.0.

If reset is false, the current_animation_position will be kept and calling play or play_backwards without arguments or with the same animation name as assigned_animation will resume the animation.

void seek ( float seconds, bool update=false )

Seeks the animation to the seconds point in time (in seconds). If update is true, the animation updates too, otherwise it updates at process time. Events between the current frame and seconds are skipped.

Thanks for answer, yes I stick with seek, but

void stop ( bool reset=true )
Stops or pauses the currently playing animation. If reset is true, the animation position is reset to 0 and the playback speed is reset to 1.0.

Doesn’t work, default reset value is true, so without arguments after AnimationPlayer.stop() invoked should back to frame 0, but it doesn’t, even set reset for true directly still doesn’t work

wojtasss | 2020-08-02 18:58