I'm making a game and it's been smooth sailing so far, but I've run into my first problem. Z order.
The player should go behind the trees when he is above them, and in front when he is below them. This only happens for some trees, the rest just don't work properly.
Here's my .cap: [url:1bu3icvp]http://dl.dropbox.com/u/7129504/Rpg.cap[/url:1bu3icvp]
The code for the z order is at the bottom of the events list. Am I doing it wrong? Is there a simpler way of doing this?