deleteme Posted May 10, 2016 Share Posted May 10, 2016 Hello all! I am trying to create a Tiled map for a little sidescrolling game i'm making, and I've followed the Phaser and Tiled documentation, but I for whatever reason cannot get the map imported correctly. I'm using Phaser v2.4.4, and one of the errors I'm getting is "Phaser.Tileset - image tile area is not an even multiple of tile size", and through a series of tests I found that my tilemap isn't even loading in which is probably the main reason for my issues. I have it in the preload (game.load.tilemap('Doom_Map', 'js/Doom_Map.json', null, Phaser.Tilemap.TILED_JSON); ) and in the create function (map = game.add.tilemap('Doom_Map');) but it seems to die out here. Any help or ideas would be appreciated! Link to comment Share on other sites More sharing options...
Skeptron Posted May 10, 2016 Share Posted May 10, 2016 This kind of error happens very often when you encode the map with Tiled. Phaser does not support any map encoding, so make sure you don't encode with Tiled when exporting. Tilde 1 Link to comment Share on other sites More sharing options...
deleteme Posted May 11, 2016 Author Share Posted May 11, 2016 Alright, dumb question since I don't know Tiled that well, how do i prevent it from being encoded when i export it? Link to comment Share on other sites More sharing options...
deleteme Posted May 14, 2016 Author Share Posted May 14, 2016 I've done a little research and i've found a window.atob method that should decode base64 and eliminate any problems. The issue is, for whatever reason it's finding an invalid character somewhere in my JSON? And the issue with my map is its already base64 so i believe i'd have to redo it to get it to CSV format, would i be better off doing that or is there another way? Link to comment Share on other sites More sharing options...
Recommended Posts