Riddik Posted November 25, 2014 Share Posted November 25, 2014 Hi there) I using Tiled editor for tiles map. that's what I see in the Tiled (for example): and that's what I see in the game after loaded this map: You can guess what id of tiles do not match in Tiled and Phaser. How to fix this? Link to comment Share on other sites More sharing options...
SoulBeaver Posted November 25, 2014 Share Posted November 25, 2014 Oh yeah, I had this problem as well. What worked for me is re-cutting the spritesheet. Are there any empty rows/columns in the the spritesheet? Remove all of those.Once I had a uniform spritesheet without gaps, the ids lined up with the proper tiles. Riddik 1 Link to comment Share on other sites More sharing options...
Riddik Posted November 25, 2014 Author Share Posted November 25, 2014 Yes, it was true. I removed the empty areas and now everything works as it should. Thank you very much !!! Link to comment Share on other sites More sharing options...
xerver Posted November 25, 2014 Share Posted November 25, 2014 Can you see if my plugin suffers from the same bug? https://github.com/englercj/phaser-tiled If so would you mind posting an issue on github with the map you used to break it? I want this plugin to render exactly what you see in Tiled. Link to comment Share on other sites More sharing options...
SoulBeaver Posted November 25, 2014 Share Posted November 25, 2014 iirc, this is an issue with Tiled, not Phaser. You can see more details in my post regarding the issue (http://www.html5gamedevs.com/topic/10192-tiledmap-loaded-with-incorrect-tiles/). tl;dr: I noticed that the .json file was consistently off by about 1 tile per row. This increased the further down the tile was in the tileset image. Link to comment Share on other sites More sharing options...
xerver Posted November 25, 2014 Share Posted November 25, 2014 iirc, this is an issue with Tiled, not Phaser. You can see more details in my post regarding the issue (http://www.html5gamedevs.com/topic/10192-tiledmap-loaded-with-incorrect-tiles/). tl;dr: I noticed that the .json file was consistently off by about 1 tile per row. This increased the further down the tile was in the tileset image. Have you reported it on their issue tracker? https://github.com/bjorn/tiled Link to comment Share on other sites More sharing options...
SoulBeaver Posted November 25, 2014 Share Posted November 25, 2014 Because of the proprietary tileset, I was not able to create a sample demonstrating the bug. However, it should be done, you are right. I'll send Riddick a message and ask him for the faulty tileset and I'll open a ticket. Link to comment Share on other sites More sharing options...
SoulBeaver Posted November 25, 2014 Share Posted November 25, 2014 I have now submitted a request to investigate the issue regarding the incorrect .json file. You can find it here if you're interested: https://github.com/bjorn/tiled/issues/831 Link to comment Share on other sites More sharing options...
xerver Posted January 8, 2015 Share Posted January 8, 2015 This was an issue with Phaser, not Tiled. It has since been solved. Link to comment Share on other sites More sharing options...
Recommended Posts