Yeah, not sure I understand the difference. Because you can specify the target object by using CCCallFunc as well.
CCCallFuncN passes the CCNode you called the action on to the method. For example if you need to run an action that removes the node from its parent you can use CCCallFuncN and then said method would look like this:
-(void)theCalledMethod:(CCNode *)thePassedNode
{
[thePassedNode.parent removeChild:thePassedNode];
}
If you used a CCCallFunc instead you would have to keep a reference to said node in order to be able to retrieve it later and remove it in the called method.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With