Positioning isometric tiles with depth ontop of flat tiles
Hi There, first of all sorry if this is in the wrong place, I'm new to the unity community,
I want the positioning of the building tile to be such that, the base of the building is exactly in position with the square on the gird, where as at the moment it seems about 20 to 50 pixels to low.
I have set the pixels per unit to be the width of the sprite so it seems the right size, its just the positioning is slightly off.
I would like my building tile to be 20 to 50 pixels higher so that the base of the building positions perfectly in one of the squares of stone above - and thus allow it to occupy one square tile on the stone grid above, it seems slightly off the edge in its current state.
I've sifted through a bit of documentation but I think the problem is I don't know the right question to ask, so even if someone could even give me the right question to ask, I would be ever so grateful.
Answer by maxymus · Aug 28, 2021 at 09:07 AM
I've got it, this can be adjusted by altering the pivot of the sprite associated with the tile on the palette.
Go to the original sprite that the tile is using
Set a custom pivot, there you can put some x and y values to tweak the positioning of where the sprite will be rendered in relation to a grid cell.