Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have two CCActions : CCAction *a; CCAction *b;

so how to use CCSequence with two CCActions Thanks

share|improve this question
CCFiniteTimeAction *example = CCSequence::create(a, b);


Alternatively you can just run the action on a sprite directly.

share|improve this answer
No, i'm coding cocos2d-x, not cocos2d, sorry, cocos2dx have less sample – user919496 Mar 11 '13 at 16:31
@user919496 sorry wasn't paying attention to the tag I'll update my answer. – Tony Mar 11 '13 at 16:32
thanks, i'm watting for your answer – user919496 Mar 11 '13 at 16:36
@user919496 I guess it should be something like [CCsequence actions:a b null] or equivalent Obj-C code! – Ali.S Mar 11 '13 at 21:12
now i find one solution : i create one CCArray * arrayAction, then add all action into arrayAction m_sprite-> runAction(CCSequence ::create(arrayAction)); – user919496 Mar 12 '13 at 3:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.