Top-Down Z Layering of Characters

Hi,

how can I make sure that in my top down game the characters layer correctly? Basically, a character that is below another character on the screen should render on top of him. Right now it is random / flickering. I could use the Z value and change it slightly based on the Y position in world space, but I was wondering if there is another way to do this, e.g. through indexing or something similar?

Thanks in advance.

Honestly, i would use your method too. The other method i have seen, is to use the y-position for the translucent sort priority , but the result would be the same.

Someone else uses this method (you probably would have to use it with the event tick, to constantly update it):

Thanks, I like the sort priority more, I will give it a Go!