Jump to content

Killing sprite, tweening and animation


pdiddles03
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...