I'm making a top down rpg kind of game and I'm having a problem with objects moving in front of others when they are moved behind the player.
I have a family of objects that move behind the player when the player's Y is greater than the object's Y
the problem is the objects in the family don't change on the Z order relative to each other so they move in front of objects they shouldn't.
In the picture both the arm chair and the little table are in the "behindinfront" family.
I hope this makes sense, it's a bit difficult to explain. I'd be very grateful for any suggestions as I'm at my wit's end.
Thank you kindly,