Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. bool HelloWorld::onTouchBegan(Touch *touch, Event *event)
  2. {
  3.     mySprite->runAction(MoveTo::create(0, touch->getLocation()));
  4.     return true;
  5. }
  6.  
  7. void HelloWorld::onTouchMoved(Touch *touch, Event *event)
  8. {
  9.    
  10. }
  11.  
  12. void HelloWorld::onTouchEnded(Touch *touch, Event *event)
  13. {
  14.     mySprite->runAction(MoveTo::create(0, touch->getLocation()));
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement