Jump to content

Drawing Offset


Recommended Posts

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.


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:


Any help or clarification is much appriciated.

Best regards!

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...