How do I blit an image on a keypressed event in pygame
问题 I'm trying to blit an image to the screen when the event K_SPACE is triggered. However, when I press space nothing happens. I've tried moving where the screen is updated or flipped, but i've hit a brick wall. Here is my code: def Play(): background = pygame.image.load(bifPlay).convert() char = pygame.image.load(mif).convert_alpha() bullet = pygame.image.load(bulletLoad).convert() zombie = pygame.image.load(zombieLoad).convert_alpha() #converting images needed so pygame can use them x,y = 115