On Wed, Aug 1, 2012 at 11:11 AM, Nitneroc <[email protected]> wrote:

> Is there a way to add z-ordering to this Water_Block class ? I'm sorry for
> asking yet another question, but I could'nt find a way by myself.
> If there is no easy way, I'll just add those Water_Blocks to a different
> Layer.
> --
>

Currently the z order is mandated by:
   The parent-child relationship between nodes
   The z parameter you can pass in cocosnode.add( child, z=...)

and the method CocosNode.visit uses that info to drive the render.
Look at it to see if your use case can be managed with explicit z.

-- 
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cocos-discuss?hl=en.

Reply via email to