Jump to content


Recommended Posts

It depends what you mean.


Do you mean, "I want to remove every display object from the display graph?" That's "game.world.removeAll();". It'll remove every sprite from the world and you'll have to add them back in manually.


Do you mean, "I want to show the player a black screen but *not* kill every sprite in my game?" That's :

game.add.bitmapData(this.game.width, this.game.height, 'curtain', true).fill(0, 0, 0);game.stage.addChild(game.add.image(0, 0, 'curtain'));

You'll want to track the result of that "addChild" call to remove it later.

Link to comment
Share on other sites


  • Recently Browsing   0 members

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