entiendoNull Posted April 10, 2017 Share Posted April 10, 2017 Hello there! I've got a question regarding the "Drawing Offset" that the Tiled mapeditor has. In short, does Phaser supports it? The map that I am using has several layers. The general size of a tile is 32x32px, but some sprites are twice as big. Even though it looks good in "Tiled" I noticed that the positions of my "trees" below had moved when I run the game. I've been trying to track the Tiled property "tileoffset" down... and thought it might be located in the Phaser.Tileset object within the drawCoords array. But, that does not seem to the trick..? I've attached a few images below to illustrate what I mean. Edit: Just read that Phaser v. 2.7.5 might have this feature implemented. Will be trying in a few hours. I will get back with the results of that test in case others have similar issues in future.Tiled Mapeditor Tileset settings Within Tiled Mapeditor When the game has rendered In my Tiled JSON file I've got the following: { "columns":1, "firstgid":41, "image":"..\/sprites\/tree.gif", "imageheight":64, "imagewidth":64, "margin":0, "name":"tree", "spacing":0, "tilecount":1, "tileheight":64, "tileoffset": { "x":-32, "y":0 }, "tilewidth":64 } Any help or clarification is much appriciated. Best regards! Link to comment Share on other sites More sharing options...
Recommended Posts