title: How can I get the position of a moving SKSpriteNode?
body: <p>I have an SKSpriteNode that moves back and forth.
  I need to get it's position as it moves (so it changes all the time) and get different positions as it moves across the screen.</p>
  
  <p>When I try and receive the position it comes as the original position.   </p>
  
  <p>Object movement:</p>
  
  <pre><code>let right = SKAction.moveBy(x: self.frame.width, y: 0, duration: 3)
  let left = SKAction.moveBy(x: -self.frame.width, y: 0, duration: 3)
  </code></pre>
  
  <p>And this is what I'm trying to do to get it's position printed as it goes.</p>
  
  <pre><code>override func update(_ currentTime: TimeInterval) {
      // Called before each frame is rendered
      pos = String(describing: blockposition.x)
      print(pos)
  }
  </code></pre>
  
  <p>Is it possible to get one that updates as it moves?</p>