Skip to content

Instantly share code, notes, and snippets.

@ryohey
Created January 24, 2014 03:54
Show Gist options
  • Save ryohey/8591805 to your computer and use it in GitHub Desktop.
Save ryohey/8591805 to your computer and use it in GitHub Desktop.
Calling a Callback after the Action using Sequence Example in cocos2d-x v3.0beta0
auto jump = JumpBy::create(0.5, Point(0, 0), 100, 1);
auto callback = CallFunc::create([](){
CCLog("Jumped!");
});
auto seq = Sequence::create(jump, callback, NULL);
sprite->runAction(seq);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment