Need Help,Yshot don't work when player node and TileMap not in same sence

Godot Version

4.2.2

Question

Like image here



3

When player node and TileMap not in same sence make yshor break,Why And How to make ysort work?
Help,pls,thanks.

To my knoledge, unfortunetally, you need the character to be a child of the Tilemap for Ysort to work. The only other solution I can think of is enabling Ysort on the Main scene as well, as far as I remember. Does it ruin anything if you put it under the TileMap?

1 Like



Ok,is fixed, I put like that(image) then it worked! Just don’t know why it work.
6

thanks,Ysort seem now working,I didn’t make character be a child of the tilemap because i want a lot map and I don’t want every map must put repeat character.
I just don’t why it now working.

The reason why putting main Ysort = true works, is because it tells its children all to Ysort, unlike having Tilemap Ysort will sort only the children of Tilemap. It’s just a way of programming stuff like that. Hope this helps and happy coding :wink:

1 Like

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