storing custom key codes in string variables

What I am really interested in is- is it possible to store all the key codes of keys that control the game into string variables. And then use the string variables to easily change the key configuration of the game?

This is useful when you want to change the game’s key configuration by editing only the variable and not the entire code of the game.

A more user friendly solution to this is to include in the game project’s properties a window where the user can define all the keys that can be used in the game. And then when coding- refer to what is set in the project’s properties. This is how unity and most engines do it. But Construct2 does not.

So here you go- another feature that will make this engine nicer. :slight_smile:

Try key pressed = VarableString(W) Move character up
(for example)