Dec-12-2018, 03:17 PM
(Dec-12-2018, 02:48 PM)metulburr Wrote:Quote:this checks for a single event, not consistently holding down a key.if event.type == pygame.KEYDOWN:
Put this not within the event loop but in the main game loop
keys = pygame.key.get_pressed() if keys[pygame.K_UP] or keys[pygame.K_w]: pass #etc.
Thanks