Quote:
Originally Posted by LoneAngelIbesu
This is pretty unrelated, but I have a question about onKeyPressed(). I've seen plenty of people using that action in conjunction with keydown(). Isn't this redundant, since onKeyPressed() has parameters that provide which key is pressed? Why not use a simple check with the parameters, rather than a function?
|
keydown() checks for the player's configuration, while keypressed uses keyboard layout. For example, keydown(5) checks for the player's key configured to 'sword', which may not always be set to 'S'.