你可以幫助我任何人在使用cocos2d 2.0.4在C++中拖放鼠標的同時交換精靈位置。在cocos2d中拖放小精靈2.0.4
CCSprite *splash=CCSprite::create("Level3.png");
splash->setPosition((200,500));
this->addChild(splash,1);
CCSprite *splash1=CCSprite::create("Level2.png");
splash1->setPosition((300,500));
this->addChild(splash,1);
CCSprite *splash=CCSprite::create("Level3.png");
splash->setPosition((200,500));
this->addChild(splash,1);
CCSprite *splash1=CCSprite::create("Level2.png");
splash1->setPosition((300,500));
this->addChild(splash,1);
與阻力交換與鼠標