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
{{ message }}
This repository was archived by the owner on Aug 3, 2024. It is now read-only.
I was wondering why the tween count in the manager was rising and noticed that when I was chaining non-expiring tweens, they were added to the manager every time on tween end.
Going to start using this lib... is this something I should look out for? Would it be a quick case of adding a check in the addTween function of TweenManager to see if the tween already exists in the array?
Each tween created is added to the manager as a unique entity, this way allow store differents tweens in vars and contact them later.
Other way will be store a json object with the tween data and use only one instance of tween, chaining this "configs". But I don't see this clear, I think is easiest now.
I was wondering why the tween count in the manager was rising and noticed that when I was chaining non-expiring tweens, they were added to the manager every time on tween end.
https://github.com/Nazariglez/pixi-tween/blob/master/src/Tween.js#L169
So maybe it should be checked here if the tween has a manager already.
The text was updated successfully, but these errors were encountered: