How should I go about (it's an isometric game) to make the depth logical?
Example, if a farmer is above another farmer (a.k.a the y value is lower, but he is HIGHER up), how would I make it so that he looks as if he is behind the farmer below him?
Same goes with walls.
I want the characters to look like they are BEHIND the walls if they go... behind it.
But be in front of the wall if they are in front of it.
The isometric perspective makes this so much more confusing to code
A good comparison of what I want is like the older beatemup games (like TMNT) where you could walk to the left and right and up and down to some extent (for example on a road). In the middle of those roads, there were sometimes objects like barrels. You could either go above and behind it, or below and in front of it.
Or something like this http://www.maxdamage.org/wp-content/uploads/2012/10/tmnt02.jpeg
You see 4 characters. The characters can be in front of each other (if they stand behind).