Closed harrdev closed 3 years ago
Trying to disable keypress events based on conditional
A conditional on the keypress event?
Let's take a look.
Jason worked through it, another conditional check in the player movement code under the keys event listener
What's the problem you're trying to solve?
Trying to disable keypress events based on conditional
Post any code you think might be relevant (one fenced block per file)
If you see an error message, post it here. If you don't, what unexpected behavior are you seeing?
What is your best guess as to the source of the problem?
A conditional on the keypress event?
What things have you already tried to solve the problem?