Guest User

Untitled

a guest
Jan 17th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. if (CGRectContainsPoint(sprite.rect, touchLocation)){
  2. sprite.position = ccp(touchLocation.x,sprite.position.y);
  3. }
Add Comment
Please, Sign In to add comment