Is it possible to set an individual cell's z-index in a TileMap?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By vspin

I have an isometric TileMap which uses y-sorting. It works great, expect when AnimatedSprites (children of TileMap) share the same y coordinate because I want some AnimatedSprites to appear over others when they share the same y coordinate.

My hope is to be able to set TileMap cells and AnimatedSprite’s z-index to create my own custom sorting. It’s important to note that the TileMap cells contain walls.

Possible?

Thank you for your time.

:bust_in_silhouette: Reply From: vspin

Hmm, well according to eons, there doesn’t seem to be a way.

https://forum.godotengine.org/15993/can-i-specify-z-index-for-tile-in-tileset-tilemap

I have a hack way of doing it, which is to increase the y coordinate one pixel for the sprite I want to display above, and then minus one from the sprite’s y offset to appear as if it’s not 1 pixel below the other. I hate this, but it’s all I can come up with, unless someone else has a better idea…?