Is there any way to allow the user to customize the controls in a game? Basically allowing them to go through a menu and do things like change jump from Up to Space, or Attack from R to F.
Changing any action to whatever key they want.
The keyboard object has 'key code' features for this purpose. 'On any key pressed' allows you to get the last key code, for setting controls, then you can test for a particular key code being pressed in an event.
Develop games in your browser. Powerful, performant & highly capable.
Awesome, thanks. Seems the same can be done for gamepads as well, so this is exactly what I needed.