Hi,
You can draw the object in the order of depth. (Last draw object will be in front of all others.)
For my part, i've made a list of different y position of all player, and i draw the player (or npc) in the good order (with a fonction that sort them).
It's not the better solution i think, but i hope it can help you.
Maldus. ...