Y sorting in godot 4

Godot Version 4.2.1

Hello guys. I have a question, is it possible to make a y sorting between player and sprite with collision. I’ve just started to work in godot, and tried to make it, but unfortunately i couldn’t. I have a player an AnimationPlayer and sprite of tree. Is it better to make animated sprite?

Here’s a tutorial about how to setup y-sorting correctly https://kidscancode.org/godot_recipes/4.x/2d/using_ysort/index.html

1 Like

Is it possible to make it without tilemap? I don’t have this one

It has nothing to do with a TileMap you can use any CanvasItem as the tutorial explains.

1 Like