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] seek() causes animation freeze for some duration #85050

Closed
DrParanoia opened this issue Nov 18, 2023 · 0 comments · Fixed by #85221
Closed

[AnimationPlayer] seek() causes animation freeze for some duration #85050

DrParanoia opened this issue Nov 18, 2023 · 0 comments · Fixed by #85221

Comments

@DrParanoia
Copy link

DrParanoia commented Nov 18, 2023

Godot version

4.2-rc1

System information

Windows 11

Issue description

The issue does not exist on Godot 4.1.3, only in 4.2

When you call seek() on the AnimationPlayer, the animation does not update instantly and freezes for a brief moment.
So if you need to switch multiple animations in a short amount of time while also calling seek(), the animation will just stop.

Steps to reproduce

  • Add a Sprite2D
  • Set a spritesheet for the Sprite2D
  • Add an AnimationPlayer
  • Create a Property animation track and add some frames
  • Loop the animation
  • Create a different animation for the same sprite an loop it
  • Switch between animations and call seek() when you do

Minimal reproduction project

The included project demonstrates the issue perfectly (I know that calling play() and seek() on each _process() is a bit overkill, but it does allow for a better demonstration). The same project works perfectly in Godot 4.1.3.

AnimationBug.zip

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

Successfully merging a pull request may close this issue.

3 participants