Reputation: 51
Cocos2D V3 does not contain CCNode reorderChild:z: How can I change the z order of a CCNode in V3? Any help much appreciated.
Upvotes: 2
Views: 1487
Reputation: 64477
Like you always could and should have, by using the zOrder property.
zOrder
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.
#import "CCNode_Private.h"
reorderChild:z: