title: Turtle graphics - Bullet stops when another one is created and continues once the new one ends
body: <pre><code>def player_bullet():
  barrel = -300
  bullet = turtle.Turtle()
  bullet.penup()
  bullet.setposition(starting_x, barrel)
  bullet.color(&quot;red&quot;)
  bullet.shape(&quot;triangle&quot;)
  bullet.setheading(90)
  
  bullet.shapesize(0.5, 0.5)
  while True:
      if barrel &gt; 300:
          bullet.ht()
          break
      barrel += 10
      bullet.sety(barrel)
      turtle.update()
  
  while True:
      turtle.onkeypress(move_left, key=&quot;Left&quot;)
      turtle.onkeypress(move_right, key=&quot;Right&quot;)
      turtle.onkeypress(player_bullet, key=&quot;space&quot;)
      turtle.listen()
      turtle.update()
  </code></pre>
  <p><em>the bullet shoots and stops once another bullet is created and shot...I want the first bullet to finish it's run while being able to create new bullets.</em> This is for a space invaders game with turtle graphics.</p>