Reputation: 1233
Is there any way to know if some sprite is running any action or not in cocos2d?
Upvotes: 4
Views: 1324
Reputation: 4131
Check number of running actions of your sprite, for example
CCSprite* sprite = [// something here];
int actionsCount = [sprite numberOfRunningActions];
Upvotes: 7