Buron
Buron

Reputation: 1233

How to add action to the sprite using Cocos2d

I have some sprite which is running some actions.... something like this:

[someSprite runAction:someAction]; or [someSprite runAction:someSequence];

I need to add a newAction or newSequence to the sprite *to run them after ending of current actions.*

Thanks, George.

Upvotes: 1

Views: 304

Answers (1)

YvesLeBorg
YvesLeBorg

Reputation: 9079

in someSequence, as the last entry in the list, place a callback with a CCCallFunc (N,ND,O), pointing to a selector of you choice. In the called function, just compute and add the actions you need to add.

Upvotes: 2

Related Questions