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

AnimationTree TimeScale with negative value fails with looping animation #27215

Closed
guzzard opened this issue Mar 18, 2019 · 3 comments
Closed

Comments

@guzzard
Copy link
Contributor

guzzard commented Mar 18, 2019

Godot version:
3.1 stable mono

OS/device including version:
Arch Linux fully updated

Issue description:
When setting negative value in time scale node animation begin playing backwards, but it does not loop, it just rewinds to the beginning and stops there. Playing forward the animation loops as expected.

Steps to reproduce:

  1. Setup animation tree with time scale node.
  2. Set time scale to negative value through script.

Minimal reproduction project:
TimeScaleTest.zip
On start the animation will play forwards automatically. Press 'left' to play backwards, and watch the animation get stuck after rewinding.

@Banderi
Copy link

Banderi commented Jun 28, 2020

I've encountered this issue too when playing with the proper 'play_backwards()' method (or setting the "from_end" flag to "true")
The animation correctly plays backwards, but if the animation controller is set to loop or the animation's set to follow into itself (via .animation_set_next()) the animation will retain the speed assigned, but only will play backwards for one cycle.

I assume internally it's just set to call .play() whenever it reaches the end, without remembering the additional flags?
I'm working on 3.2 so it might have changed from OP's version - but if I set a negative speed it just freezes in place, which makes me think it's the same issue at the core: it's trying to play another cycle, but it forgot to do it backwards.

@epth
Copy link

epth commented Jul 14, 2020

I have tried in 3.2.2-stable, it still fail.

@Calinou
Copy link
Member

Calinou commented Oct 27, 2021

Duplicate of #21665.

@Calinou Calinou closed this as completed Oct 27, 2021
@Calinou Calinou removed this from the 4.0 milestone Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants