wizardeddas Posted May 25, 2017 Share Posted May 25, 2017 So I'm having an issue trying to get a tilemap working properly. I made my tilemap in Tiled. JSON: http://intheexpanse.com/rpg/levels/level4.json Image: http://intheexpanse.com/rpg/images//base_out_atlas.png Code: http://intheexpanse.com/rpg/js/main.js Any ideas what I'm doing wrong? I've used multiple tilemaps from different sources and they all have similar display errors. Thank you. Link to comment Share on other sites More sharing options...
samme Posted May 25, 2017 Share Posted May 25, 2017 Can you screenshot the display in Tiled and in Phaser? Link to comment Share on other sites More sharing options...
jpdev Posted May 25, 2017 Share Posted May 25, 2017 The first parameter for addTileSetImage must match the name of the tileset in the map file. Here is your example working: http://jppresents.net/static/examples/tilemap/ http://jppresents.net/static/examples/tilemap/main.js (I also edited the level file to not only contain green tiles - I also changed path in the main.js because my server layout isn't the same.) Link to comment Share on other sites More sharing options...
wizardeddas Posted May 26, 2017 Author Share Posted May 26, 2017 Thank you jpdev! That worked perfectly! Link to comment Share on other sites More sharing options...
Recommended Posts