O'Reilly logo

GameMaker Programming By Example by Steven Isaacs, Brian Christian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Customizable controls

The final system we will be incorporating into our game is one through which players can customize and save their keybinds so that they are different from the left and right arrow keys and the Enter key. We will only put in a binding system for these keys, but it is quite easy to extend the system to include other keys, such as the one for pause, and moving the selection up and down on a menu. The keybinds will be saved to our .ini file whenever the game is closed, and loaded back in at its very start.

So let's begin putting it in! First, make another button sprite, just like the others that we made, but it will be for modifying the keybindings. When you've finished that, open up the pause menu object. The majority of our ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required