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

Can't play an animation a second time if the name is identical #56

Closed
dploeger opened this issue Nov 18, 2021 · 0 comments · Fixed by godot-escoria/escoria-demo-game#446
Assignees
Labels
bug Something isn't working
Milestone

Comments

@dploeger
Copy link
Collaborator

Please make sure you talk to the community before creating an issue.

Describe the bug
When using the animation commands, playing an animation with the same name a second time doesn't work. The animation is not played.

To Reproduce
Steps to reproduce the behavior:

  1. Create an ESCItem with an animation node (AnimatedSprite for example)
  2. Set up an animation
  3. Use an ESC animation command to play the animation
  4. Use an ESC animation command to play the animation a second time (even reverse)
  5. Animation isn't played

Expected behavior
The animation should be played a second time.

Additional context
This is due to a flaw in the engine code. See godotengine/godot#55068

The solution is to add an additional "frames = 0" or "seek(0)" command after the animation was finished.

@dploeger dploeger added the bug Something isn't working label Nov 18, 2021
@dploeger dploeger added this to the 4.0.0 milestone Nov 18, 2021
@dploeger dploeger self-assigned this Nov 18, 2021
dploeger added a commit to godot-escoria/escoria-demo-game that referenced this issue Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant