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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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