O'Reilly logo

GameMaker Game Programming with GML by Matthew DeLucas

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

Creating resources to integrate mouse input into the puzzle game

Now that the basic configuration of mouse input have been discussed, it can now be integrated into the puzzle game. This will require changes to some of the scripts written in the previous chapter.

Note

In some of these script updates, variables for keyboard input will also be added. These will be explained shortly after the mouse input is integrated.

Adding new events to obj_grid_manager

Within obj_grid_manager, an update to the Create event needs to be made. One of the updates will make the grid manager accessible through a global variable. The other update in the Create event will track information about which pieces are being highlighted by the mouse and the keyboard.

The Create event ...

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