I need help with Y Sorting

Godot Version

Godot 4.3

Question

I’m trying to make Y sorting work for my tileset but it just doesn’t. I set the Y sorting on in the Player in the Game scene and in the TileMapLayer. I also went to the tileset tab at the buttom and set the y sorting origin but it just doesn’t work. the player z index is 1 the tile z index is 0 (the TileMapLayer is also 0), but even when i tried to change them to 1 as well it didn’t work. I looked for tutorials online but none of them use TileMapLayer. please help

1 Like

Where did you put the y sort origin?

1 Like

image

I don’t know if its related but the tile is animated

And you have y-sorting activated on the parent of the player and on the tilemap?

1 Like


I have Y sorting enabled on the Player on the Game and on the Misc(Which is the TileMapLayer)

can you please explain what values need to be changed and where they are. at the moment I changed the “Y Sort Enabled” option in the inspector under ordering as well as “Z Index” under ordering as well (even when I made the Z index be the same it still didn’t work)

Can you make the “Tilemaps”-node a node2d and if it still doesnt work set y-sort to true on the Tilemaps-node2d?

1 Like

thank you so much. for some reason it worked

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.