Skip to content

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

@trynx

Description

@trynx

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();

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions