[Solved] CCLayer numberOfRunningActions() always return 0 value

Hi,

Is CCNode method numberOfRunningActions() broken in cocos2d-x.2.0.04 ?
For some reason it seems to always returns 0, even if I have indeed some actions ongoing.

I’m trying this from a class inherited from CCLayerColor where some CCNode objects are added as child and have actions ongoing.

Cheers,
Luís

Nothing broken, was trying to get numberOfRunningActions from the CCLayerColor itself.
But one should instead, iterate its children and check numberOfRunningActions on each of them :slight_smile: