Yeah, not sure I understand the difference.
Because you can specify the target object by using CCCallFunc as well.
Yeah, not sure I understand the difference. Because you can specify the target object
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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:
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.