oliversb Posted June 4, 2014 Share Posted June 4, 2014 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.childrenAnd to clear something like: game.stage.remove(mySprite) Thanks Link to comment Share on other sites More sharing options...
oliversb Posted June 4, 2014 Author Share Posted June 4, 2014 I am using mySprite.kill atm. But I need an array to loop through the children. Atm I have created my own array to do that. And append to that array everytime I add a sprite. Link to comment Share on other sites More sharing options...
oliversb Posted June 4, 2014 Author Share Posted June 4, 2014 I mean this.destroy sorry. Link to comment Share on other sites More sharing options...
Recommended Posts