title: Dragging a sprite with TouchMoved
body: <p>I'm using Xcode with Cocos2d version 3.0.</p>
  
  <p>I want to drag sprites around the screen. I've done so successfully using the following code:</p>
  
  <pre><code>(void) touchMoved:(UITouch *)touch withEvent:(UIEvent *)event 
  
  {
  
  CGPoint touchLocation = [touch locationInNode:self];
  
  sprite1.position=touchLocation; 
  
  sprite2.position=touchLocation; 
  
  sprite3.position=touchLocation;
  
  sprite4.position=touchLocation; 
  
  }
  </code></pre>
  
  <p>However, sometimes the sprites stop moving after a second. It's not a lag, because they never catch back up with my movement. They just stop! If I let go and start moving my touch again, the sprites start moving fine again / sometimes do the 'freeze thing' again.</p>
  
  <p>Is it a memory issue? </p>
  
  <p>Ok, I'm sure it must be memory. I copied this code onto a simple game with hardly any sprites and it worked perfectly.</p>