def player_bullet():
barrel = -300
bullet = turtle.Turtle()
bullet.penup()
bullet.setposition(starting_x, barrel)
bullet.color("red")
bullet.shape("triangle")
bullet.setheading(90)
bullet.shapesize(0.5, 0.5)
while True:
if barrel > 300:
bullet.ht()
break
barrel += 10
bullet.sety(barrel)
turtle.update()
while True:
turtle.onkeypress(move_left, key="Left")
turtle.onkeypress(move_right, key="Right")
turtle.onkeypress(player_bullet, key="space")
turtle.listen()
turtle.update()
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. This is for a space invaders game with turtle graphics.