Cameras And Display

The window is where GameMaker displays your game, and, depending on the target device, there are different things that can be done with it, like set it to fullscreen or not, for example. Cameras (and view ports), however, govern what you see within that window, and so have another series of functions dedicated to them. The following two sections deal with these two aspects of displaying your game:

 

However, sometimes it's not enough to get information about the game window and views only, and you really need to know things about the display itself (essentially the screen that the game window is being displayed on). The following function all give you details about the size and orientation of the display, details about the GUI layer, and information on the mouse:

 

There are also a few special functions that can be used to save the display, or part of it, to an image file, either as *.png or *.gif: