For fixing “child already added. It can’t be added again” issue, you need to check if you’ve already added it.
See the example below,

int pauseMenuTag = 99;
if(![self getChildByTag:pauseMenuTag]) {
[self addChild:pauseMenu z:0 tag:pauseMenuTag];
}

Incoming search terms:

  • child already added it can\t be added again
  • child already added it can\t be added again rails version
  • cocos2d child already added it can\t be added again
  • cocos2d x child already added It cant be added again
  • \child already added it can\t be added again\

Filed under: Cocos2diPhoneObjective C

Like this post? Subscribe to my RSS feed and get loads more!