Y-sorting issue

Godot Version

Godot 4.6

Question

Hey all.

I am brand new to this world and starting my own project. I’m working on a 2D top down ARPG style game. I’m currently having an issue that I assume is related to y-sorting. When my player crosses the y line from > 0 to < 0, they disappear behind the tiles.

Anyone else ever run into this?

func _ready() -> void:
    print("hello world")

Your TileMapLayer can’t have the y_sort_enabled property turned on, otherwise this exact issue will happen.
Consider turning it off and having it on only for the nodes that you actually want to Y-sort.

1 Like

Ok. This was helpful and definitely sent me down the right path to start making corrections.

It’s funny how many times I got similar advice but for some reason what you said and how you said it clicked for me.

Grateful.

Thank you.

1 Like