I’ve rewatched several tutorials, but they are for older Godot versions, from before the TileMapLayer node was introduced. Here’s what I tried: I created a TileMapLayer
node, enabled its Y-sort
, and made the player a child of it. It works to some extent, but the Y-sorting isn’t applied to individual cells. Instead, it seems to compare the Y position
based on the TileMapLayer
’s origin at (0, 0)
. What am I missing?
Is y sort enable in the world or main scene? And in player, tilemap?
I tried different configurations, but nothing seems to work: I tried enabling it on the root Node2D node, no result, I tried enabling it on the player CharacterBody2D node, and still no result.
Solved it! You must enable y-sort on the TileMapLayer
and add children you want to sort to it. All objects must share the same Z-index.
1 Like
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.