mapeditor / tiled

Flexible level editor
https://www.mapeditor.org/
Other
11.06k stars 1.75k forks source link

Discrepancy in displaying tile image in "Place tile" mode #330

Open namtiny opened 11 years ago

namtiny commented 11 years ago

Hi,

I have an isometric map of 64x40. The tile image is 64x80.

In tile layer, the tile is correctly positioned at the selected tile.

tile_stamp

In object layer, however, the tile is displaced.

object_place

Nam

stefanbeller commented 11 years ago

duplicate of https://github.com/bjorn/tiled/issues/91

namtiny commented 11 years ago

They are indeed quite close, but I am not sure if they are the same.

91 seems to suggest that only the Y axis is wrong.

When I test with oversized tile (this is 3x3 tile, 192x240 pixels), both the X, and Y axis are off. In the image below, the placement was at the top most tile. The object was saved with Y=200, and X=80.

3x3

bjorn commented 11 years ago

Ah, this is cause for isometric maps, the tile objects are horizontally centered on their location. This decision predated the 'tile offset' parameter and seemed to me about the only thing that made sense. Of course, I'm aware it won't match the alignment choice of all games, so maybe a setting should be introduced for this.