I’m having a problem where I cannot get Y Sort to work at all. I have a tree scene (StaticBody2D) and a player scene (CharacterBody2D). They both have Y Sort Enabled and their node’s y-coordinate is centered near the bottom. edit The parent node (Node2D) has Y Sort enabled as well. /edit
But Y Sort is not working, and I’m out of things to try. edit I’ve tried making the parent scene(Node2D) have Y Sort enabled while the other two nodes do not have Y Sort enabled. That did not work. /edit Final edit The problem was that I had the Z index set to 1. I reset it to zero and Y Sorting started working again.
I appreciate the help I was given. Thank you mrcdk.
You need to enable y-sort in the parent node where you instantiate those scenes. Unless you need y-sort in the children of the tree or player scenes, you don’t need to enable y-sort there
Thanks for the help. I tried this, turning off Y Sort on everything but the parent node. I wish it was the solution to my problem. I was really hoping that it would solve everything. It did not change anything.