trouble with pygame keyboard input
EthanCulp (4)

Whenever I press "w", it wont register my input. It isn't the code inside of the if statement because it isn't even printing "w"

https://repl.it/@EthanCulp/Game

You are viewing a single comment. View All
Answered by Zavexeon (427) [earned 5 cycles]
View Answer
Zavexeon (427)

@MATTHEWBECHTEL That's a valid operator, +=.

For example you could do:
x += 1
which is the equivalent of...
x = x + 1