CC的各种动画
一共由几种
CCMoveBy CCMoveTo
CCScaleBy CCScaleTo
CCRotateBy CCRotateTo
CCSkewBy CCSkewTo
CCTintBy CCTintTo
CCJumpBy CCJumpTo
使用方法:
CCMoveBy *action1 = [CCMoveBy actionWithDuration:1 position:CGPointMake(30, 30)];[s runAction:action1];
CCMoveBy *action1 = [CCMoveBy actionWithDuration:1 position:CGPointMake(30, 30)]; CCMoveTo *action2 = [CCMoveTo actionWithDuration:5 position:CGPointMake(200, 100)]; CCSequence *se = [CCSequence actions:action1,action2, nil]; [s runAction:se];