title: How can I make my sprite move accross the screen?
body: <p>When a certain value is met I want my enemy sprite to return to his intial position,but now hes just disappearing and reappearing in that position.</p>
  
  <p>I'm only changing the Y position</p>
  
  <pre><code>def update(self):
      self.count += 1
      x_component = self.ship.rect.centerx-self.enemy2X
      y_component = self.ship.rect.centery-self.enemy2Y
      distance = math.hypot(x_component, y_component)
      if distance &lt; 200:
          self.currentState = 1      
          print distance
      elif distance &gt; 200:
          self.currentState = 0
          self.enemy2Y=68
          print self.enemy2Y
  </code></pre>