Problem with Walls in Tilemap Sorting Layers

I’m facing an issue in my top-down game. I’ve set up layers so that walls should appear above the player when appropriate, but this setup isn’t working as expected. I also configured the project settings to sort based on the Y-axis, but this doesn’t work correctly either.

What I want to achieve is for the player character to appear behind the wall when below it and in front of the wall when above it. The current sorting problem is shown in the attached images. Any advice on how to properly configure the sorting layers or other solutions for this issue would be greatly appreciated.

your walls cant be tiles, it will never sort correctly

Even after trying to make the walls separate objects instead of tiles, the problem still wasn’t resolved. I’ve set the walls as individual objects, but they still don’t sort correctly with the player.

put transparency sorting axis on 0,1,0

put walls on same layer as char

put same order in layer on all objects and char

put the pivot of the wall sprite on the bottom of the wall

put the pivot of the sprite on the feet of the char

if you did all of the above it will now work correctly

1 Like

I restarted the computer and the problem was solved. Although there were no such problems before. Thanks for trying to find the reason!