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);
- 1 回答
- 0 关注
- 1001 浏览
添加回答
举报
0/150
提交
取消