General Game Control

These functions and variables are all related to game specific functionality, like loading/saving, restarting and so on.

The following global scope built-in variables are useful for debugging your game - they can be used as the output to a log file in the case of issues, for example - as well as for showing the current build ID, etc... to the user:

 

The following functions are used for general game control:

 

To help you create and maintain highscores for your games, GameMaker creates a global high score array of 10 places which you can access, add to, and change to create your own custom high score lists without too much fuss. This functionality is local to the game and works on all platforms, so you can easily store and maintain a basic high score table using these functions along with the File Handling Functions.

The following functions exist that deal with the internal high score list.

 

GameMaker also includes a function for drawing the highscores out on the screen as a list, however it is very basic and it is recommended that you use this for debugging more than anything else as making your own high score table is easy and will give you far more control over how it is displayed:

 

Finally, we have a function that permits you to assign a sprite to the mouse cursor: