I'm making this space invaders type game with pygame and I have this issue where, enemies keep spawning while the time is stopped. I need a fix that removes those enemies from the window ( I use .blit to display my surfaces) right after the time is started again.
E.G:
def draw_on_window(enemy):
   window.blit(enemy)
def main():
    # Command that clears the window of "Enemy surfaces" somehow?? :   
    # window.remove(enemy) ?? 
   run = True
   while run:
     draw_on_window(blue_enemy)
     #game
 
     
    