Hello everyone, I think (hope) this is the correct channel for this 😅.
Basically, I have this situation: simply a player and a tilemap.
The tilemap is y-sorted, so depending on its position the player's sprite can either be rendered in front of the tilemap or behind it.
Is there a simple way to check which of these two cases is true at a given frame? Or do I have to do math with the player position and the relative tilemap cell position + y sort origin?
I have considered a VisibleOnScreenNotifier2d, but since the player's position is not snapped to the tilemap, its sprite can be partly hidden, and I have to treat this case as if it was completely hidden. Unfortunately, the notifier can't tell the difference between completely or partly visible.
Thank you in advance to anyone kind enough to reply 😊