I have a CCSprite that gets placed on the screen. Lets call it Sprite A.
Later on I want to place Sprite B, on top of Sprite A.
So I am trying:
cocos2d::CCPoint location = cocos2d::CCPoint(SpriteA->getPosition().x,
SpriteA ->addChild(SpriteB, 3);
Sprite B is getting added to the screen but not in the right place. It seems that where it is being added is somehow, maybe relative to something else.
Can anyone help me to do this better?