I'm trying to make a space invaders like game where you can move a spaceship left and right and shoot bullets.
But whenever I animate the bullet, the spaceship can't move and i can't shoot another bullet either.
I'm using something called pygame_functions and this is what I've been trying:
while True:
if keyPressed("space"):
###shoots fireball###
while i >= 100:
moveSprite(fireball, x,y)
y=y-3
elif KeyPressed ("a"):
###moves right###
elif KeyPressed ("d"):
###moves left###
Is there a way to continue my inner loop while my outer loop still applies?