You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When tween.play() is called a second time, the expected behavior is for the tween's state to reset so the tween can play again, ORtween.state === Phaser.Tweens.COMPLETE.
What actually happens is two semantic inconsistencies:
after one call of tween.play(), tween.state === Phaser.Tweens.REMOVED instead of Phaser.Tweens.COMPLETE
then jumps to Phaser.Tweens.ACTIVE and tween.isPlaying() returns true indefinitely, while the tween does not actually ever update.
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.
Version
Description
When
tween.play()
is called a second time, the expected behavior is for the tween's state to reset so the tween can play again, ORtween.state === Phaser.Tweens.COMPLETE
.What actually happens is two semantic inconsistencies:
tween.state === Phaser.Tweens.REMOVED
instead ofPhaser.Tweens.COMPLETE
Phaser.Tweens.ACTIVE
andtween.isPlaying()
returns true indefinitely, while the tween does not actually ever update.Example Test Code
Additional Information
Currently, this hack seems to patch the issue, but is not an intuitive way to handle tweens.
If I have a reference to a tween, I would like to use it freely without having to modify both the tween and the tween manager.
The text was updated successfully, but these errors were encountered: