Cocos2d V3 How change z order of child? reorderChild is not available in V3

1.4k Views Asked by At

Cocos2D V3 does not contain CCNode reorderChild:z: How can I change the z order of a CCNode in V3? Any help much appreciated.

1

There are 1 best solutions below

0
On

Like you always could and should have, by using the zOrder property.

You can also #import "CCNode_Private.h" to gain access to that method. But know that behind the scenes changing zOrder does nothing but call reorderChild:z: on your behalf anyway.