Skip to content

Instantly share code, notes, and snippets.

@iodiot
Created September 8, 2016 11:36
Show Gist options
  • Save iodiot/c1f5b7f507d6659703161275e6559de2 to your computer and use it in GitHub Desktop.
Save iodiot/c1f5b7f507d6659703161275e6559de2 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