#TileMapLayer tiles inconsistently Y-sorting on the same tile

1 messages · Page 1 of 1 (latest)

eager ocean
#

Sorry if the title's a bit odd, not quite sure how else to describe it.

I have a TileMapLayer and wanted to emulate a slanted checkerboard look using a Half-Offset Square shape, and hacked slanted tiles into it. It works okay, but I'm getting clipping issues specifically on the red tiles, where the lower left corner will sometimes, sometimes not overlay above the tile that's means to be "in front". I know Y-sorting exists, but can't seem to get it to work on the same tile in the same tilemap. Is there any kind of way I could wrangle this?

#

For completeness' sake, the way I have the tiles set up is like this. The tilemap sizes are X:20, Y: 11 px, while the tileset sizes are X: 30, Y: 13.

#

Just wondering if this is a tech issue or if I just gotta redraw the tiles in a more clever way to get my desired effect.

balmy grail
#

i would think the tile redraw is the move

#

that or maybe a second tile and on the diagonals use an alternate tile?

#

it is really easy to iterate through all the tiles in script so it might be possible to just do that programatically at runtime too

eager ocean
#

Ideally I'll want the game to eventually draw these boards up on its own anyway so I might as well see if I can get that working. Fair enough, thanks 👍

eager ocean
#

Managed to fix it with a simple workaround. Managed to squish the tile size down while maintaining the illusion by including the red shadow in the green tile.