Skip to content

Instantly share code, notes, and snippets.

@iodiot
Created September 8, 2016 11:36
Show Gist options
  • Save iodiot/87c996562779a0c44b339b5a8d5d0b04 to your computer and use it in GitHub Desktop.
Save iodiot/87c996562779a0c44b339b5a8d5d0b04 to your computer and use it in GitHub Desktop.
// Create the actions
CCFiniteTimeAction* actionMove =
CCMoveTo::create( (float)actualDuration,
ccp(0 - target->getContentSize().width/2, actualY) );
CCFiniteTimeAction* actionMoveDone =
CCCallFuncN::create( this,
callfuncN_selector(HelloWorld::spriteMoveFinished));
target->runAction( CCSequence::create(actionMove,
actionMoveDone, NULL) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment