this post was submitted on 21 Jul 2023
13 points (93.3% liked)
Game Development
3426 readers
4 users here now
Welcome to the game development community! This is a place to talk about and post anything related to the field of game development.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Isn't there a node that will order its children by ZIndex or somesuch? I haven't really used Godot much, but I remember that being a useful thing.
There is a node for Y-sorting in Godot 3, is that what you're thinking of? Y-sorting was rewritten for 4.0, so that node doesn't exist in the latest version.
That sounds like it, yep. It's been years since I used it, so that definitely tracks.
AFAIK, the Z index was supposed to be the definitive thing defining what shows on top of what.
There was also a weird problem where my map would display on top of characters if I moved to tiles in the negative position (x < 0, y < 0), so I had to make the whole map within positive values.