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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -