title: Animating an image going across the screen in pygame but most of the image looks..."glitchy"
body: <p>I'm trying to make an image fly across the screen from the left to the right.</p>
  
  <p>It moves but the backround keeps cutting in so only portions of the image show and the full image appears at the end of the loop.</p>
  
  <p>I did something like this once a year before but the code I was writing back then is so "spaghetti-ed" that I can't even read or understand it.</p>
  
  <p>Here's my code now:</p>
  
  <pre class="lang-py prettyprint-override"><code>import pygame
  
  screen = pygame.display.set_mode((1000, 600))
  background = pygame.Surface((1000,600))
  
  image = pygame.Surface((1000,600))
  for i in range(0,100,5):
      #draw backgound
      screen.blit(background, (0, 0))
      pygame.display.update()
  
      #draw image
      image.blit(pygame.image.load("imageName.png"), (0,0))
      print("image position:", i-20)
      screen.blit(image, (i-20,0))
      pygame.display.update()
  
      pygame.time.delay(10)
  
  </code></pre>
  
  <p>Why is this happening? Is it my computer or is it my code? How can I fix it?</p>
  
  <p>Any help is greatly appreciated.</p>