Hi,
I want to call a function with schedule. The problem is that my function takes certain arguments but I dont know how to pass them in the scheduler. One option which I know is to declare parameters as members but I dont want to take that route. Does anybody have the solution for this?
I got following solution from http://discuss.cocos2d-x.org/t/it-is-possible-to-pass-an-argument-with-schedule-selector/1426/3:
this->runAction(CCSequence::actions(CCDelayTime::actionWithDuration(_tiemToDelay),CCCallFunc::actionWithTarget(this,callfunc_selector(xxx::functionYouWant),NULL));
But this is in older version of Cocos2d-x. Can anybody let me know how to do it in Cocos2d-x V3?
Thanks-in-advance.