Well, the question is simple, but I'm afraid of the answer.
The z-order of my tk2dsprite components works great in the editor player. But when I export it (to web player, pc, android, doesn't matter), the z-order gets all messed up. The objects seems to "jump" randomly between z positions, sometimes one is behind another, sometimes not, and so on.
I'm using 3 cameras.
An ortographic one for my "main" objects, like the player
A perspective one for the "foreground" objects, that spawns above the player, to give a sense of speed and coolness
Another perspective one for the "background" objects, that spawns behind the players. I have lots of objects in this layer, and they will spawn randomly in randomly z-positions.
I've got a demo at
www.playlouis.com/build/build.htmlClick screen to begin. When the worm starts walking, press the UP ARROW to see the weirdness and press the DOWN ARROW to go back.
The strange thing is that this weirdness does not happen in the editor player.
So, could you tell me why does this happen and how may I fix it?
Thanks in advance.