Hi all,
I'm trying to understand z-order, which I would have expected to be simple, except things are not working as I'd planned. I assumed z-order was basically just depth, and children with higher z-orders are drawn more towards the viewer, so on top of children with lower z-orders.
My question is this: is z-order absolute across a layer with all of its children?
Reason I ask is because I have a scene with the following children and z-orders: in my notation '-->' means is a child of...
treeSprites (z:4) --> backGroundSprite (z:1) --> parallaxNode (z:0) --> gameLayer (z:0) --> gameScene
characterSprite (z:3) --> CharacterSpriteManager (z:0) --> gameLayer (z:0) the same gameLayer as above.
So I would expect that because the trees z:4, and the character is z:3, the character should be drawn under the trees. This is not the case. The character is always on top, and this I don't get.
Can someone please explain this to me?
Thanks,
Jonathan0382
-------
Shape Reactor..... a shameless plug. Anyone want a free download?