OS And Compiler

When creating cross-platform games, it is often of vital importance that you get the details of the operating system that the device running your game is using. Things like the language, the version or the network state can all be used to adapt your game to the system running it and make the end-user experience the best possible, so GameMaker has a number of special functions which can be used to get the necessary information.

OS and Browser

The following functions and variables exist for you to use to get certain details about the operating system or browser that is running your game:

Pre-compiled Functions and Constants

Certain functions and constants are pre-compiled when you run your game (i.e.: they are used to define how the final game will be compiled), and some are also for use when the game has been compiled to get specific details about the runtime environment. Here you can find the full list of them:

Scheduler

On Windows, the resolution of the Windows thread scheduler is set to 1ms by default when your game runs. The following functions are available for retrieving and changing the resolution of the Windows thread scheduler at runtime:

Clipboard

Some targets also give you access to the clipboard to get and set information. For this GameMaker has the following functions: 

Extensions

Finally, when working with Extensions you may need to be able to define and call external functions at runtime, and so you'd use the following:

NOTE These are legacy functions and you should define any extension functions within the Extension Editor itself.

NOTE These functions are for the Windows and macOS target platforms only.