Problem with the Y-Sorting

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

I’m having issues using the Y sort node. I’m developing a top down rpg 2D and I needed to sort my PGs nodes based on their Y coordinate but I noticed that those nodes only get ordered when I place them in the scene tree; if I move those characters on runtime, they’ll be rendered as they were drawn at first.

Ex. if Player1 at start has a lower Y.coordinate value, it will be displayed behind the Player 2 even tho during runtime their coordinates change.

That works for me. Did you place your characters as children of the YSort node?
Also, which version of Godot are you using, and which renderer? GLES2 or GLES3?

Zylann | 2019-09-06 19:02