How I pass an argument with a function which I want to scheduled…
Suppose I want to pass an argument with test function of HelloWorld class, How it’s possible?? schedule,5)
And where i get the defination of schedule_selector function or working??
Thanks Minggo Zhang to clear my doubt. But I have one question.
Suppose I have such requierment to call a function with argument in some interval time…
then how I will achieve this functionality in cocos2d-x.
In cocos2d it is possible to call a function with argument at such interval time. How i got this functionality in coco2d-x…
hi,john.
you can use actions to do you want.
sample code:
this->runAction(CCSequence::actions(CCDelayTime::actionWithDuration(_tiemToDelay),CCCallFunc::actionWithTarget(this,callfunc_selector(xxx::functionYouWant),NULL));