Example of CCSpawn

The CCSpawn action lets you run several actions at the same time. The duration of the CCSpawn action will be the duration of the longest sub-action. 

Inheritance diagram of CCSpawn:

 id action = [CCSpawn actions:
 [CCOrbitCamera actionWithDuration: duration_/2 radius: 1 deltaRadius:0 angleZ:inAngleZ deltaAngleZ:inDeltaZ angleX:0 deltaAngleX:0],
 [CCScaleTo actionWithDuration:duration_/2 scale:1],
 [CCShow action],

 [self runAction:action];

No comments:

Post a Comment