I'm looking to create a randomly generated tile-based map in the following style:
The problem is the Z-order of each individual tile. I'm creating multiple tiles on the fly (users will unlock new areas and a group of new tiles will appear), so when Tile A has a greater Y position than the overlapping Tile B, I want to bring the Z-order of Tile A in front of Tile B. Since they're just difference instances of the same object I can't just do a simple overlapping tile/Y position comparison. After searching the forums I've taken a look at the Evil Sprites demo, but I don't see how I could transition that to Z-ordering.
Does anyone have a simple solution for this? Or am I going about this all wrong?