How to load b2bodies from physics editor and remove the corresponding body with its sprite of an array on touch in cocos2dx | Techbirds
//ADD SPRITES TO THE SCENE CCSprite *sprite1=CCSprite::create(“sprite1.png”); //Let the scaling factor is rX and rY for X and Y direction sprite1->setScaleX(rX); sprite1->setScaleY(rY); scene->addChild(sprite1); //Similarly we can add other sprites also which are to be in the array //ADD ALL THESE SPRITES TO THE CCARRAY CCArray *arr=new CCArray; arr->addObject(sprite1); In above sprite declaration,position of the sprite