pacman

How can I make pacman continue to move after I stopped pressing a specific key?

How can I make pacman continue to move after I stopped pressing a specific key? Question: I want the main character to continue to move in the specific direction I chose until I press another key. This is the code for what I did: for event in pygame.event.get(): if event.type==pygame.KEYDOWN: if event.key==pygame.K_q: pygame.quit() elif event.key==pygame.K_w: …

Total answers: 1