title: Moving Sprites Across Screen In Sprite Kit
body: <p>I am trying to move a sprite that is a red ball from left and right to the screen. I hear I can do this by using the velocity property maybe or another way would be ok too but here is my code.</p>
  
  <pre><code>import SpriteKit
  
  class GameScene: SKScene, SKPhysicsContactDelegate {
  
  let  redBall = SKSpriteNode(imageNamed: "redball")
  
  override func didMoveToView(view: SKView) {
      let thrust = CGFloat(0.12)
      let thrustDirection = Float()
  
  
  
      //RedBall Properties
      redBall.physicsBody = SKPhysicsBody(circleOfRadius: redBall.size.width/2)
      redBall.physicsBody?.velocity
      addChild(redBall)
  
  
      //World Phyisics Properties
      let worldBorder = SKPhysicsBody(edgeLoopFromRect: self.frame)
      self.physicsBody?.friction = 1
      self.physicsBody = worldBorder
      self.physicsWorld.gravity = CGVectorMake(0, 0)
  
  }
  override func touchesBegan(touches: Set&lt;NSObject&gt;, withEvent event: UIEvent) {
  
  }
  override func touchesMoved(touches: Set&lt;NSObject&gt;, withEvent event: UIEvent) {
  
  }
  }
  </code></pre>
  
  <p>Thanks!</p>