YSort is'nt working when I run the game

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By YumeSharkMekzGemz

I’m working on a top-down RPG and I’ve been having trouble with YSort.
The Node is above everything I want to be sorted, Sort? is enabled, and all the Z-Indexs are on 0.
When I’m in the editor, YSort works, but when I run the game, YSort doesnt do anything. I donut understand and it is driving me mad.

:bust_in_silhouette: Reply From: timothybrentwood

Y-sort nodes render their children according to their y-positions, not sibling nodes that are underneath it. Are the nodes that you want sorted children of the y-sort node or are they siblings?

Quick guide on how to use y-sort nodes: https://kidscancode.org/godot_recipes/kyn/ysort/

i said in the question they were children. and i checked and they are.

YumeSharkMekzGemz | 2021-08-22 06:26

“is above everything” is pretty ambiguous language. The guide I linked shows both the basics of how to use it and how to resolve the most common issue people experience with y-sort nodes. Did you check out the guide? If so did it resolve your issue? If not please post pictures of the issue you are experiencing.

timothybrentwood | 2021-08-22 14:25