Making enemies overlap each other properly in top down game

Hi, I run into a lot of issues with making things overlap when making a top down game. The perspective is not fully from overhead, it’s more at an angle so that you can see the bodies and faces of the characters, like in top down Zelda games or most RPGs. One question I have is if I have a bunch of the same kind of enemy on the screen, how do I make the enemies overlap so that whichever one is higher on the screen appears behind the one that is lower on the screen?

For make enemies overlap like you want, use the Ysort extension YSort [GDevelop wiki]

Thanks. I’ll try to figure that way out.

I figured out another way that works for 2 enemies of the same type colliding but I guess this won’t work if there are 3 all colliding at once: