CCSequence runs actions sequentially, one after another.
Collaboration diagram for CCSequence:
[item runAction:[CCSequence actions:
[CCScaleTo actionWithDuration:0.2 scale:1.3],
[CCScaleTo actionWithDuration:0.2 scale:1],
[CCCallFunc actionWithTarget:self selector:@selector(playAction)],
nil]];
-(void) playAction {
// replace scene
[[CCDirector sharedDirector] replaceScene:[CCTransitionFade transitionWithDuration:0.3 scene:[GameNode scene]]];
}
No comments:
Post a Comment