How to judge whether a sprite is running an action?

I think we need a “isRunningAction()” function.

isDone()

http://www.cocos2d-x.org/embedded/cocos2d-x/d7/d12/classcocos2d_1_1_c_c_action.html#af331c8d397317f969d87fc417e751303

I think you can use this code:

if(sprite->numberOfRunningActions() > 0)