How to set/determine a tile's clickable region?
Posted: Thu Nov 28, 2013 8:36 pm
Quick background: I'm building a hi-res (128px-wide) hex tileset. Iso perspective for the art, but using the "non-iso" (i.e. flat sides) orientation in the tilespec.
Anyone know what determines a tile's hotspot? I've got all my test graphics the right size and lined up properly. But for some reason, the actual clickable are of my tiles is about 20px higher than it should be. It seems to be the right shape, though. And I've checked the maths and whatnot, so I'm all but certain I've got the vertical metrics set correctly.
My basic tile graphic is a 128x128, with a 128x84 hexagon set tight to the sides and 4px from the bottom of the bounding box (so 40px from the top). I've used this basic structure for everything except the coastlines.
All the visible tile graphics (special resources, upper tile layers, user_attention cursor) line up appropriately when based on my standard tiles. So my guess is that the hotspot is placed automatically with values derived from some graphic's dimensions, but does anyone know which one? I'm not about to go messing with all my grid dimensions if someone already caught that goose (or found that needle, if you prefer).
Thanks, folks!
Anyone know what determines a tile's hotspot? I've got all my test graphics the right size and lined up properly. But for some reason, the actual clickable are of my tiles is about 20px higher than it should be. It seems to be the right shape, though. And I've checked the maths and whatnot, so I'm all but certain I've got the vertical metrics set correctly.
My basic tile graphic is a 128x128, with a 128x84 hexagon set tight to the sides and 4px from the bottom of the bounding box (so 40px from the top). I've used this basic structure for everything except the coastlines.
All the visible tile graphics (special resources, upper tile layers, user_attention cursor) line up appropriately when based on my standard tiles. So my guess is that the hotspot is placed automatically with values derived from some graphic's dimensions, but does anyone know which one? I'm not about to go messing with all my grid dimensions if someone already caught that goose (or found that needle, if you prefer).
Thanks, folks!