Tile display when tile size superior to map tile size


(Bastien Sevajol) #1

Hello,

I have a tileset with 64x64 pixel images and a map with 8x8 pixel tile size:

When i want to place a tileset item, the x/y position of tileset image is the bottom left of the tileset image. Is it possible to configure something to display de center of tileset image on the x/y position of tileset ?

Thank’s a lot,
bux.


(Thorbjørn Lindeijer) #2

Yes, you can do this by changing the “Drawing Offset” property of the tileset, which is an offset in pixels applied when drawing tiles from that tileset. If you want to center a 64x64 tile when placed on an 8x8 grid, a drawing offset of (-28, 28) should do the trick.

For changing any tileset property, you can click the small “Edit Tileset” button below the tileset view.

Nice looking map, btw! What game is that?


(Bastien Sevajol) #4

Thank you it is perfect ! Tiled is a very good software, congrats :wink:

Nice looking map, btw! What game is that?

I’m working on OpenCombat project (see more here: http://www.closecombatseries.net/CCS/modules.php?name=Forums&file=viewtopic&t=11696), a clone of Close Combat. By the way, in the future i would like to use Tiled to make an “altitude” layer (like here in offcial game: https://youtu.be/D_WQYB-A_KQ?t=35m14s). Do you think Tiled is a good option ?


(Thorbjørn Lindeijer) #5

Currently Tiled has no support for layers with arbitrary data, like altitude in this case. Though if there is a limited set of valid altitudes, you could use a tile layer for this with a tileset where each tile represents a different altitude.

But of course, Tiled being open source you may want to try adding a special layer type for this with an appropriate editing tool.