Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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

so how to use CCSequence with two CCActions Thanks

share|improve this question

1 Answer 1

CCFiniteTimeAction *example = CCSequence::create(a, b);

CCSequence

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

 
discard

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.