I have many enemies running around on the screen (like my Beast Attack game). However, they overlap in random ways as they are moving around. I want the enemies in the bottom to look like they are in front of the other enemies, but move to back if they are moving above the other enemies.
What's the best way to go about this?