c++ - CCCallFunc usage in cocos2dx -
i getting warning on line stating method actionwithtarget deprecated. can 1 tell alternative method can used in cocos2dx
cccallfunc *callbackfunc = cccallfunc::actionwithtarget(this, callfunc_selector(gameplay::starttrumphetanimation));
thanks
try this:
cccallfunc *func = cccallfunc::create(this, callfunc_selector(gameoverscene::myfunction));
//declare function also
void gameoverscene::myfunction(ccobject* sender) { }
Comments
Post a Comment