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.