Godot Version
4.2.1
Question
I am making a top-down 2d game. Up until now I was using several z-indices for Tilemap layers and setting all of the objects’ and player character’s z-indices to 0. So that they would be on the same layer and could be y-sorted.
However, now I need to place an object on a table. They both need to have the same z-index to be correctly y-sorted with the player. But at the same time, the object needs to be drawn over the table. Which is not possible, due its center being located higher than the table’s.
So how should I correctly deal with ordering in this case?