pdiddles03 Posted July 28, 2017 Share Posted July 28, 2017 when i apply sprite.kill() to something, does it automatically stop the tween/animation? Link to comment Share on other sites More sharing options...
lloydevans Posted July 28, 2017 Share Posted July 28, 2017 No. At least I'd hope not, because that would be some needless coupling of two quite unrelated things. https://github.com/photonstorm/phaser/blob/v2.6.2/src/gameobjects/components/LifeSpan.js#L113 You can use the onKill event to do so yourself. That's why we have events You could also check the docs/source, or even just console log the object after you call the kill method to find out yourself. Link to comment Share on other sites More sharing options...
pdiddles03 Posted July 29, 2017 Author Share Posted July 29, 2017 Lol the docs that give very very vague info. I decided to ask here and get an answer. Which I did. Ty Link to comment Share on other sites More sharing options...
pdiddles03 Posted July 31, 2017 Author Share Posted July 31, 2017 When switching game state, does that kill the animation? Link to comment Share on other sites More sharing options...
Recommended Posts