action(二)

RemoveSelf :消失
CCFiniteTimeAction*    action = CCSequence::create(
    CCMoveBy::create( 2, ccp(240,0)),
    CCRotateBy::create( 2,    540),
    CCScaleTo::create(1,0.1f),
    CCRemoveSelf::create(),
    NULL);
CCRemoveSelf::create
这个的效果大家看到了就是让精灵越来越小,直到消失。
Spawn:同时执行动作
CCAction*    action = CCSpawn::create(
               CCJumpBy::create(2, ccp(300,0), 50, 4),
               CCRotateBy::create( 2,    720),
               NULL);
这个就是同时执行动作,动作的时间长度按照时间最长的动作决定。
DelayTime:延时
CCFiniteTimeAction*    action = CCSequence::create( move, CCDelayTime::create(2), move, NULL);
CCDelayTime::create 参数1:延时时间
OrbitCamera:球面轨迹旋转
CCActionInterval*    orbit1 = CCOrbitCamera::create(2,1, 0, 0, 180, 0, 0);
   CCOrbitCamera::create 参数1:执行时间 参数2:起始半径  参数3:半径差
     参数4:起始Z角  参数5:旋转Z角差 参数6:起始X角
     参数5:旋转X角差
原文地址:https://www.cnblogs.com/newlist/p/3202139.html