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() does not skip Call Method Track Keys #80640

Closed
golddotasksquestions opened this issue Aug 14, 2023 · 5 comments · Fixed by #80708
Closed

AnimationPlayer seek() does not skip Call Method Track Keys #80640

golddotasksquestions opened this issue Aug 14, 2023 · 5 comments · Fixed by #80708

Comments

@golddotasksquestions
Copy link

golddotasksquestions commented Aug 14, 2023

Godot version

4.1.1 stable 4.2. dev3

System information

Win 10

Issue description

seek() is supposed to skip the keys inbetween current Timestamp and it's argument value Timestamp.

When playing an Animation in the AnimationPlayer which has a Call Method track key somewhere in the middle section for example, and then the user tries to "skip" that middle section using seek(), the Call Method track keys in the middle section are still handled, even though animation has skipped the middle section and the update argument is false.

So it basically behaves like advance() should behave.
However, advance also does not behave as it should, since it advances further than it should and when setting Update in the seek() method to true, the Call Method track key is actually called twice!

Steps to reproduce

Create an AnimationPlayer Animation of 5 seconds,
Add a script with two functions: One to seek(4.0) and another one to print("hi")
Add a Call Method Track and at Timestamp second 1.0 add a key to the seek() method and on Timestamp 2.5 add a key to print().
Play the scene and observe "hi" being printed
image

Set seek(4.0, true) to enable Update (like in advance method), and observe "hi" being printed twice!
Maybe related: #76773

Minimal reproduction project

4.2. dev3 (issue is the same in 4.1.1 stable)
animation_seek_bug.zip

@rt9391
Copy link

rt9391 commented Dec 16, 2023

4.2.1.stable is still bugged.
image
paseuresumbug
see #86147 ?

@golddotasksquestions
Copy link
Author

I can also still replicate this in Godot 4.2.1 stable.

@TheRedstoneScientist
Copy link

I can still reproduce in 4.2.1 stable as well

@TheRedstoneScientist
Copy link

Does anyone have any suggestions to work around this in the meantime? @rt9391 @golddotasksquestions

@AThousandShips
Copy link
Member

Please open a new issue for this as it's likely a different bug so should be tracked on it's own

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.

6 participants