Feb-16-2019, 05:06 AM
Hey, so I'm new here and don't plan to use this website again.
The only reason I'm here is because I've spent ages trying to get this code to work and it won't
I think there's something wrong with my computer.
Pygame doesn't seem to register when I do things.
I've altered this code like 99999 times and it hasn't shown a sign of working once. It just lets me type and nothing else happens. Here's what it is at the moment:
The only reason I'm here is because I've spent ages trying to get this code to work and it won't
I think there's something wrong with my computer.
Pygame doesn't seem to register when I do things.
I've altered this code like 99999 times and it hasn't shown a sign of working once. It just lets me type and nothing else happens. Here's what it is at the moment:
import pygame pygame.init() while True: pressed = pygame.key.get_pressed() for event in pygame.event.get(): if event.type == pygame.KEYDOWN: if pressed[pygame.K_w]: print("w is pressed") elif pressed[pygame.K_s]: print("s is pressed")please help asap