Jump to content

Get array of stage sprites


oliversb
 Share

Recommended Posts

Is there a built-in array I can use for sprites added to the stage. If I used for example game.add.existing(mySprite) Also, how do I best clear the sprites from memory?

 

Like: game.stage.children

And to clear something like: game.stage.remove(mySprite)

 

Thanks

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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