Cocos2d
cocos2d-x Sprite의 이미지를 바꾸기
Нуеоп
2012. 8. 29. 16:52
if(containsTouchLocation(pTouch)){
CCSprite* pScroll2 = (CCSprite*)(this->getChildByTag(105));
if( pScroll2 ){
CCIcon* icon = ((CCIcon*)pScroll2->getChildByTag(100));
if( icon ){
icon->setTexture(this->getTexture());
}
}
}