【发布时间】:2014-08-22 15:10:14
【问题描述】:
我想为如下精灵运行动作:
CCRotateTo* actionTo = CCRotateTo::create(0.2, 0.0f, -90.0f);
CCRotateTo* actionToBack = CCRotateTo::create(0.2, 0.0f, -180.0f);
CCFiniteTimeAction* actionChangeTexture = CCCallFuncN::create(this,
callfuncN_selector(Paddle::spriteChangeTextture));**//*i want to send value here***
runAction(CCSequence::create(actionTo,actionChangeTexture,actionToBack, NULL));
void Paddle::spriteChangeTextture(CCNode* sender) {
***//i want to using parameter here, it's integer value***
}
如何在函数调用中发送值。 请帮忙
【问题讨论】:
标签: c++ cocos2d-x ccsprite cocos2d-x-2.x ccaction