pdiddles03 Posted July 28, 2017 Report Share Posted July 28, 2017 when i apply sprite.kill() to something, does it automatically stop the tween/animation? Quote Link to comment Share on other sites More sharing options...
lloydevans Posted July 28, 2017 Report 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. Quote Link to comment Share on other sites More sharing options...
pdiddles03 Posted July 29, 2017 Author Report 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 Quote Link to comment Share on other sites More sharing options...
pdiddles03 Posted July 31, 2017 Author Report Share Posted July 31, 2017 When switching game state, does that kill the animation? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.