tags:

views:

155

answers:

1

Yeah, not sure I understand the difference. Because you can specify the target object by using CCCallFunc as well.

A: 

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.

pabloruiz55