jumpby设定回调函数,我设定jumpby执行时间是0.6秒,我希望在0.6秒后再执行回调如何做到?
跳跃动作创建代码:
CCJumpBy* jump = CCJumpBy::create(0.6f,ccp(0,0),25,1);
CCCallFunc* callfunc = CCCallFunc::create(this,callfunc_selector(Square::jumpEnd));
CCActionInterval* jumpAction = CCSequence::create(jump,callfunc,NULL);
getSprite()->runAction(jumpAction);
冉冉说
相关分类