Godot 4.4.1
Question
Hi there, I want an Sprite2D (static) to be shown in front of the Player or behind the Player character on a TileMapLayer. Based on the position of the Player:
logic structure for the code (not the actual code):
if y coords of Player < y coords of Sprite2D:
show Sprite2D in front of player
else
show Sprite2D behind player
But is there a way to do that without code? (Some settings in the Inspector for example) Or is this only doable with code?
EDIT: nvm, got it
I just need to activate Y sort enabled on the TileMapLayer