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

[v3.54.0 - Tweens] Tween pause and resume doesn't work well #6169

Closed
trynx opened this issue Jul 10, 2022 · 1 comment
Closed

[v3.54.0 - Tweens] Tween pause and resume doesn't work well #6169

trynx opened this issue Jul 10, 2022 · 1 comment

Comments

@trynx
Copy link

trynx commented Jul 10, 2022

Version

  • Phaser Version: 3.54.0

Description

When initializing a tween, then do .pause(), and after some time(seconds-minutes) I call on that tween .resume(), it doesn't work... if I do .pause() and pretty immediately I do .resume(), it will work, even if I paused it and resume after some seconds-minutes.

If doing paused: true on the config, and then do resume after some time, it does work well.

Example Test Code

// Create tween...
tween.pause();

//... wait a few seconds

tween.resume();

// It won't show, maybe it was GC?

Additional Information

It works well if doing:

// Create tween...
tween.pause();
tween.resume();

//... wait a few seconds
tween.pause();

//... wait a few seconds
tween.resume();
@photonstorm
Copy link
Collaborator

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

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

2 participants