Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AnimationPlayer does not reset on stop(true) #27499

Closed
scottkunkel opened this issue Mar 28, 2019 · 4 comments · Fixed by #33733
Closed

AnimationPlayer does not reset on stop(true) #27499

scottkunkel opened this issue Mar 28, 2019 · 4 comments · Fixed by #33733

Comments

@scottkunkel
Copy link

Godot version:

dbf2f0c

OS/device including version:

win10

Issue description:

animationplayer.stop(true) does not reset the animation to 0, it gets stuck on current delta

Steps to reproduce:
attached project
TileTest.zip

Minimal reproduction project:

workaround:
seek(0,true) then
stop()

@DriNeo
Copy link

DriNeo commented May 20, 2022

I noticed this problem. "stop()" is still broken.

@hiulit
Copy link

hiulit commented Jul 20, 2022

It happened to me, too.

transition_frame.mp4

If it is of any help, I needed it in my "scene transitions", specially on the "transition_in", when the scene has changed from "scene_01" to "scene_02".

I even needed to set current_animation to make it work.

transition_ok.mp4

@LakshayaG73
Copy link

I'm not sure how and why this is a bug. Stopping the animation does not mean it updates values? You want to update values, use seek().

Conceptually, this is not a bug

@hiulit
Copy link

hiulit commented Jan 18, 2023

@LakshayaG73 the problem doesn't have to do with stop() perse, but with stop(true), which the docs state that:

 If reset is true, the animation position is reset to 0 and the playback speed is reset to 1.0.

and it wasn't updating the properties

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment