Closed lhphr closed 1 year ago
Thanks for reporting this issue and thank you for the project, that was really helpful!
Here is the diagnostic:
hasFinished
to true.
_hasEnded
on its instance.
https://jeremyckahn.github.io/shifty/doc/tweenable.js.html#line398When we resume a scene, shifty is called to process all existing tweens. When doing so, shifty does not care if its tween instance has the hasEnded
flag and processes it (See https://jeremyckahn.github.io/shifty/doc/tweenable.js.html#line120), making it take the target value of the tween.
I will check if this can be fixed/improved in shifty before trying to find a solution of our own.
Describe the bug
Resuming the scene changes some object parameters to the value of the last played tween which affected said parameters, even if the tween is already completed.
To Reproduce
Steps to reproduce the behavior:
Small test project file showing the bug (uses position as example, but is replicable with other parameters)
Other details
OS: Windows 10 Pro 21H1 GDevelop version: 5.1.158, Desktop