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

This is not happening. I have 2 states, and when I so this.state.start('SlideShow', true,false) or any combination of that method. 

the previous state is still there. I can stil see all the objects being rendered on screen. 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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