Hi phaser’s guys,
I need to delete a timeline and all its tweens but can’t find the way.
I use javascript delete function to suppress my timeline, which is effectively deleted.
`
But it’s not the case for the tweens composing the timeline which are not deleted (which is logical I believe).
Is there an easy way in phaser to recuperate these tweens in an array to delete them ?
I have given a look to the TweenManager class’s getAllTweens() function, but can’t find the way to use it.
Thanks fo any help!
It can take an update or two before all the removals are finished.
I doubt you need to do any of this yourself. If you stop a timeline or if the timeline completes on its own, the manager will eventually remove all of it.
Thanks for your answer. I am really sorry it was a stupid mistake : I had forgotten some other tweens. By the way I have a question. It seems that tweenManager class is an internal class : it means I suppose it is not desirable that one use those classes for an ordinary use. Do you know if it exists a list of those internal classes just to know where to look and for what in phaser’s API?