现在的位置: 首页 > 综合 > 正文

变速移动Node

2013年08月26日 ⁄ 综合 ⁄ 共 485字 ⁄ 字号 评论关闭
CCActionInterval *bgMoveOut = CCMoveTo::create(actionInterval, pos);
			CCEaseExponentialOut *moveOutEase = CCEaseExponentialOut::create(dynamic_cast<CCActionInterval *> (bgMoveOut->copy()->autorelease()));
			CCFiniteTimeAction *finishedAction = CCCallFuncN::create(this, callfuncN_selector(SOMEControl::ActionFinishedHandler));
			CCSequence *moveOutSeq = CCSequence::create(moveOutEase, finishedAction, NULL);
			bg->runAction(moveOutSeq);

CCEaseExponentialOut 先快后慢

CCEaseExponentialIn 先慢后快

即指数的曲线

其它的曲线运行请查看CCEaseAction.h

抱歉!评论已关闭.