Basically, say I have this:
[sprite runAction:action];
[sprite2 runAction:action2];
in cocos2d, this would execute both at the same time. But say i want the first line to fully complete before going onto the next, how would I do that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
on the first sprite, run a CCSequence of [action,startSprite2], where startSprite2 is another action (CCCallFunc). When the ‘action’ completes, the startSprite2 routine routine will be invoked. Add that to your module, and in that routine start your sprite2 action.