honeybadger Posted March 10, 2018 Share Posted March 10, 2018 What are the functions to use in order to remove a game object? For example, in "Making your first Phaser 3 game" tutorial (https://phaser.io/tutorials/making-your-first-phaser-3-game), how do I remove the platforms and recreate new ones when the player successfully collects all the stars? Thanks very much :-) Link to comment Share on other sites More sharing options...
Lord_Fry Posted March 20, 2018 Share Posted March 20, 2018 Hey honeybadger, finally i found a solution for this. I added a restart functionality whenever the player is hitten by the bomb. In my case "bombs" is a group containing all bombs. After killing the children, you also got to clean up the group.. Elsewise you will get some strange errors. bombs.children.iterate(function (child) { child.destroy(); }); bombs.clear(true); I haven't found a better solution yet, but this works at my place. Link to comment Share on other sites More sharing options...
Recommended Posts