title: Sprite Kit - Move object to position of touch
body: <p>I have an object in my scene. When I touch the screen I want the object's y position to become the y position of my touch. For that I have the following code:</p>
  
  <pre><code>-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
  
      SKNode *player = [self childNodeWithName:@"player"];
  
      UITouch *touch = [touches anyObject];
      CGPoint positionInScene = [touch locationInNode:self];
      player.position = CGPointMake(player.position.x, positionInScene.y);
  }
  </code></pre>
  
  <p>It works with this code, but how do I get the object to move to the touch y position at a steady speed? So, instead of jumping to the touch y position, move to it on a predefined speed.</p>