What is a good way to check if the player presses any key?
Currently refactoring this script (event trigger labels) and every frame, it is checking a bunch of things unnecessarily for any action trigger events.
Ideally, I should only be checking for event triggering if the player actually pushed a button, so I would like to put in a conditional branch that checks whether any key is pressed before continuing with more checks.
Currently refactoring this script (event trigger labels) and every frame, it is checking a bunch of things unnecessarily for any action trigger events.
Ideally, I should only be checking for event triggering if the player actually pushed a button, so I would like to put in a conditional branch that checks whether any key is pressed before continuing with more checks.