Use functions:
void CCNode::pauseSchedulerAndActions(); void CCNode::resumeSchedulerAndActions();
If you want all the children in the layer to stop, you need a loop to do this.
CCArray* childs = this->getChildren(); CCObject* child; CCARRAY_FOREACH(childs, child) { CCSprite *sprite = (CCSprite *)child; child -> pauseSchedulerAndActions(); }
If you just want the special child to pause, just use the getChildByTag function to get the child and pause the sprite.
Hope this will be helpful :)
source share