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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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