CCCallFuncN passes the CCNode to which you called the action. For example, if you need to run an action that removes a node from its parent, you can use CCCallFuncN, and then the specified method will look like this:
-(void)theCalledMethod:(CCNode *)thePassedNode { [thePassedNode.parent removeChild:thePassedNode]; }
If you used CCCallFunc, you would need to save the link to the specified node in order to be able to get it later and delete it in the called method.
pabloruiz55
source share