我尝试了这两种操作,但得到了相同的结果。
CCMOVeTo:
CCMoveTo *moveimage1=[CCMoveTo actionWithDuration:2.0 position:CGPointMake(100, 100)];
CCMoveTo *moveimage2=[CCMoveTo actionWithDuration:2.0 position:CGPointMake(WindowSize.width/2, WindowSize.height/2)];
CCSequence *sequence=[CCSequence actions:moveimage1,moveimage2,nil];
[FirstImage runAction:sequence];
CCJumpTo:
CCJumpTo *JumpImage1=[CCJumpTo actionWithDuration:1.0 position:CGPointMake(100, 100) height:0.0 jumps:2];
CCJumpTo *JumpImage2=[CCJumpTo actionWithDuration:1.0 position:CGPointMake(WindowSize.width/2, WindowSize.height/2) height:0.0 jumps:2];
CCSequence *sequence1=[CCSequence actions:JumpImage1,JumpImage2,nil];
[FirstImage runAction:sequence1];