title: How to make sprite jump higher/smaller depending on the amount of time touching screen?
body: <p>Hi I'm having difficulties finding the correct code to apply to my sprite to allow small jump when only taped and a higher jump when finger is on screen longer. (Please find current code below)</p>
  
  <pre><code> override func touchesBegan(touches: Set&lt;NSObject&gt;, withEvent event:UIEvent) {
  
  
  
      /* Called when a touch begins */
  
      if (gameOver == 0){
  
          //Player Begin Jumping.
          player.physicsBody?.applyImpulse(CGVectorMake(0, 200))
          player.runAction(SKAction .playSoundFileNamed("sounds/Jump.caf", waitForCompletion: true))
  
      }
  
  }
  
  override func touchesEnded(touches: Set&lt;NSObject&gt;, withEvent event: UIEvent) {
  
      if (gameOver == 0){
  
          //Player End Jump.
          player.physicsBody?.applyImpulse(CGVectorMake(0, -120))
  </code></pre>