Is there a CCCallblock like function in 2d-x? Coz if you want to run a lot of sequences in your action, u need to write lots of callback functions instead of using the callblock function.
It is really a pain in the ass, is there any other better ways to do that?
You can use lambdas for it.
I did lambda in python before, but I haven’t worked on that yet, i will check on that, thx Igor, hope it would work\~
Did u use lambda in cocos2d-x be4, can u give me a quick example?
Yes I gave it a try. Please review http://www.cocos2d-x.org/boards/6/topics/15864. Note that code is just an illustration so probably contains mistakes.