title: In SpriteKit how to move two different sprites with two different touches
body: <p>I want to move two different sprites at the same time but have two different touches for each of them. So one touch will move player One wherever that touch is and touch two will move player Two to where it goes. I do not want both sprites to go to the same direction or towards the same thing. I have tried many things like, having two sprite nodes that would border the areas of where the players could move and where the users could tap and move inside the sprite, that did not work. I would like to try the method above but I could not get the code to work. Please help! Thanks!
  Here is my code  </p>
  
  <pre><code>-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
  
  for (UITouch *touch in touches) {
      CGPoint location = [touch locationInNode:self.playerOneBorderBody];
      CGPoint location2 = [touch locationInNode:self.playerTwoBorderBody];
      if (CGRectContainsPoint(self.playerOneBorderBody.frame, location)) {
          [self location:location];
      }
  
      else if (CGRectContainsPoint(self.playerTwoBorderBody.frame, location2)) {
          [self locationTwo:location2];
  
  
  }
  
  }
  </code></pre>