How to order enemy sprite layering?

How to make certain enemy appear above other enemy in term of sprite?
I want hat to be displayed above enemy, but nothing works (I tried adding them in different order and changing order of enemies ID)
AFAIK the render order is determined by the y position of the (bottom of the) sprite. Wouldn't it work if you added extra padding at the bottom of the two body part sprites?
You mean extending Y coordinates of their file resolution, so their Y is bigger than main enemy Y?
Correct, yes. The y of the bottom of the sprites determines who comes on top.
It doesn't work. Hat has bigger file resolution that enemy, but enemy is still displayed above hat
image.png


index.php
GHOST_SINGLE_SPRITE.png
Perhaps try padding the BERET_SINGLE a little bit more (I had to lower the resolution by the way because the project I had ready has a tiny screen)? I just tested it and it seems to work okay. Very, very cool sprites you have by the way!
1708049061695.png
Nvm I just had to make it bigger not by 10, but by 100 y
Thanks, case solved

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-order-enemy-sprite-layering.165778/