Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17083

Action CallBack

$
0
0

@sunil9038 wrote:

Hey i am trying to get the callback of a action .First one is working fine without parameter.
void EnemyRotatingAnimationCallback();
CCCallFunc::create(CC_CALLBACK_0(GamePlay::EnemyRotatingAnimationCallback,this))

But now i want to pass an integer with the callbackfunction function as a parameter.How can i do this?
Error:-
void EnemyRotatingAnimationCallback(int i);
CCCallFunc::create(CC_CALLBACK_0(GamePlay::EnemyRotatingAnimationCallback(5),this))

pls suggest me some code.

Posts: 5

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 17083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>