Buron
Buron

Reputation: 1233

How to know if some sprite is running any action in cocos2d?

Is there any way to know if some sprite is running any action or not in cocos2d?

Upvotes: 4

Views: 1324

Answers (1)

X Slash
X Slash

Reputation: 4131

Check number of running actions of your sprite, for example

CCSprite* sprite = [// something here];
int actionsCount = [sprite numberOfRunningActions];

Upvotes: 7

Related Questions