Jump to content

Deleting sprites passing from a state to another one


OscarBraindeaD
 Share

Recommended Posts

Hi all,

i'm using phaser to make a little html5 game. I'm using states to separate the differents parts of the game.

I have a question about how Phaser works internally... when I pass from one state to another one, do I must delete all sprites, buttons, etc... manually before leaving the current state or Phaser automatically delete all the sprites, buttons, I've created?

 

Please excuse me if this has been answered already.

 

Thanks in advance.

Regards.

Link to comment
Share on other sites

  • 5 months later...

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...