bigtunacan Posted April 18, 2015 Share Posted April 18, 2015 I would like to insert a tile into an empty TilemapLayer I have on a user click event, but I'm able to find anything in the documents on how to do this. Link to comment Share on other sites More sharing options...
AlanSmithee Posted April 18, 2015 Share Posted April 18, 2015 Use Tilemap.putTile: http://phaser.io/docs/Phaser.Tilemap.html/Phaser.Tilemap.html#putTileThere is an example of how to use it here http://phaser.io/examples/v2/tilemaps/blank-tilemapIf you are using the dev branch of phaser you can use putTileWorldXY to put a tile on an empty tilemaplayer. Link to comment Share on other sites More sharing options...
bigtunacan Posted April 18, 2015 Author Share Posted April 18, 2015 Thanks Alan! That was exactly what I was looking for. Got it working in about 5 minutes after looking at the example you linked me to. Link to comment Share on other sites More sharing options...
Recommended Posts