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.advance() does not work when called right after play() within 1-2 process frames #85052

Closed
rt9391 opened this issue Nov 18, 2023 · 3 comments · Fixed by #85221

Comments

@rt9391
Copy link

rt9391 commented Nov 18, 2023

Godot version

4.2.rc1

System information

win11

Issue description

If you call animation.advance() after play() within a single process frame, the animation will not work properly.
The advance function does not work.
image
The advance function does not work either.
image
The advance function works, but 2 frames have already shown
image

This bug is not present in 4.1.3.stable.

Steps to reproduce

create a scene with animation and run code like below.

func _ready():
	animation_player.play("new_animation")   
	animation_player.advance(5.0)

the advance function did nothing.

Minimal reproduction project

animation_play_advence.zip

@rt9391 rt9391 changed the title animation.advance() does not work when it`s using after play() in one process frame animation.advance() does not work with play() in one process frame Nov 18, 2023
@rt9391 rt9391 changed the title animation.advance() does not work with play() in one process frame animation.advance() does not work when called right after play() within a process frame Nov 18, 2023
@rt9391 rt9391 changed the title animation.advance() does not work when called right after play() within a process frame animation.advance() does not work when called right after play() within a(or 2) process frame Nov 18, 2023
@rt9391 rt9391 changed the title animation.advance() does not work when called right after play() within a(or 2) process frame [AnimationPlayer]advance() does not work when called right after play() within a(or 2) process frame Nov 18, 2023
@rt9391 rt9391 changed the title [AnimationPlayer]advance() does not work when called right after play() within a(or 2) process frame [AnimationPlayer] advance() does not work when called right after play() within a(or 2) process frame Nov 18, 2023
@Calinou Calinou changed the title [AnimationPlayer] advance() does not work when called right after play() within a(or 2) process frame AnimationPlayer.advance() does not work when called right after play() within 1-2 process frames Nov 18, 2023
@YuriSizov
Copy link
Contributor

Can you confirm that it works correctly in 4.1.3? Or, alternatively, that it doesn't work correctly in 4.1.3, of course.

@rt9391
Copy link
Author

rt9391 commented Nov 21, 2023

Can you confirm that it works correctly in 4.1.3? Or, alternatively, that it doesn't work correctly in 4.1.3, of course.

Yes, I can confirm it works in 4.1.3.
image

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

Successfully merging a pull request may close this issue.

5 participants