Alright, it's not an isometric game but it's the best way for me to explain.
I simply want to make sprites that are closer to the bottom of the screen appear in front of those that are closer to the back.
So for example, let's say the player walks behind an enemy. The only issue is that if you placed the player after the enemy, it'll make it seem as though the player is walking on the enemies face - in other words the player would be overlapping the enemy even though they should be behind the enemy.
I've tried:
If Enemies(family) Y < Enemies(family).Y
- -> Enemies(family) Z order Move in front of enemies.
If Enemies(family) Y > Enemies(family).Y
- -> Enemies(family) Z order Move behind enemies.
Doesn't work. I assumed maybe it was because the events were applying the same thing to each and every enemy. So, I used 'For Each' after.
If Enemies(family) Y < Enemies(family).Y
For each Enemies(family)
- -> Enemies(family) Z order Move in front of enemies.
If Enemies(family) Y > Enemies(family).Y
For each Enemies(family)
- -> Enemies(family) Z order Move behind enemies.
Didn't work. I don't know where to go from this point, does anyone have any ideas?