2

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

James Webster
  • 31,873
  • 11
  • 70
  • 114

1 Answers1

2

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.

CodeSmile
  • 64,284
  • 20
  • 132
  • 217