When trying to make a game that uses pseudo 3D. The closest example I can come up with is the style Don't Starve uses, just a little less 3D. My idea involves the player character being in front or behind an object depending on their Y value and the objects Y value. However, the problem I have is that only the first object created works correctly, all the others are always in front of the player.
I need to know if I can improve my "3D" system to fix this issue. I've already tried "for each" and that's about all I can think of. Any help?