I have a function that is not part of a class that I want to call after a delay.
CCDelayTime *delayAction = CCDelayTime::actionWithDuration(3.0f);
CCCallFunc *callSelectorAction = CCCallFunc::actionWithTarget( this, callfunc_selector( ShowWinScreen ) );
helloWorldScene->runAction( CCSequence::actions( delayAction, callSelectorAction, NULL ) );
Now, if I make ShowWinScreen part of the class, such as HelloWorld::ShowWinScreen() then it works, however I don’t want this function part of the class. How can I make a global function call after a delay? Thanks for all the help.