Godot Version
4.2.2
Question
Like image here
When player node and TileMap not in same sence make yshor break,Why And How to make ysort work?
Help,pls,thanks.
4.2.2
Like image here
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?
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
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.