microspace Posted December 7, 2018 Share Posted December 7, 2018 Hello! I want to reload map, but this time without destroying map object. Previously I was doing it this way: Create: map = TopDownGame.game.add.tilemap("mytilemap"); map.addTilesetImage('tileSheet', 'myTiles'); flour = map.createLayer('flour'); Destroy and recreate: map.destroy(); flour.destroy(); map = TopDownGame.game.add.tilemap("mytilemap"); map.addTilesetImage('tileSheet', 'myTiles'); flour = map.createLayer('flour'); But here I have to destroy map object too. Is there a way to do this without destroying map object? (I now that I can always use `putTileWorld`) Link to comment Share on other sites More sharing options...
Recommended Posts