Making a Sprite move only when pressing?
<p>I have a circle on the screen that moves right whenever I press on the right side of the screen, and left when I press on the left side of screen. Now I need to make it so when I begin a touch, my circle moves right, but if I release my touch, then the circle will stop until I press on the screen again. </p>

<p>This is in my touchesBegan function.</p>

<pre><code>    for touch: AnyObject in touches {


    let location = touch.locationInNode(self)
    if location.x &lt; self.size.width / 2 {

        let moveLeft = SKAction.moveToX(self.frame.width / 3, duration: 1.0)
        Ball.runAction(moveLeft)

    }
    else {

        let moveRight = SKAction.moveToX(self.frame.width / 1.445, duration: 1.0)
        Ball.runAction(moveRight)


        }





    }
</code></pre>

<p>Here is what I have so far.</p>