cocos2d-x 将一个节点从其父节点上移除,加到另外一个节点上

childNode->retain();  // 引用计数
childNode->removeFromParent(true);
otherNode->addChild(childNode);

原文地址:https://www.cnblogs.com/C-Plus-Plus/p/4092051.html