title: The obstacle does not keep spawning. Only one spawns initially then the loop is cut off?
body: <p>The code is not generating the object at the timer I set it at.</p>
  
  <pre><code>pygame.time.set_timer(pygame.USEREVENT+2, random.randrange(10, 500))
  obstacles = obstacles(1050,300,64,64)
  
  while run:
      for event in pygame.event.get():
          if event.type == pygame.QUIT:
              run = False
          if event.type == pygame.USEREVENT+2:
              objects.append(obstacles)
  
              for object1 in objects:
                  object1.x -= 1
                  if object1.x &lt; -100:
                      objects.pop(objects.index(object1))
  </code></pre>
  
  <p>No error message, however only one obstacle appears</p>