Coordinate system problem


(lewis) #1

Hi,

I used Tiled Editor to create a new Object Layer and a new Image Object, I thought the Tiled Editor coordinate system’s original point (0, 0) should be in the upper-left of map, so if the image also in the upper-left of map, the image position should be (0,0) too, but actually the image Y value is image’s Height(not 0), could you help to explain why Y is not 0 when image in the upper-left of map? and could you help to intorduce the Tile editor’s coordinate system? Thanks:)


(Thorbjørn Lindeijer) #2

This is because for image objects, the origin is in the bottom-left (as opposed to top-left for rectangle objects). This is an unfortunate historical inconsistency, which will eventually be fixed when the origin is made configurable.