CCSequence连续动画的制作

[self.plane setPosition:CGPointMake(200, 100)];
    CCSprite *s = [CCSprite spriteWithFile:@"ccbParticleFire.png"];
    [s setPosition:CGPointMake(100, 100)];
    [self addChild:s];
    
    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];

你可能感兴趣的:(sequence)