Backgrounds

The third type of basic resource is backgrounds. Backgrounds are usually large images that are used as backgrounds (or foregrounds) for the rooms in which the game takes place. Often background images are made in such a way that they can tile an area without visual cracks. In this way you can fill the background with some pattern. A number of such tiling backgrounds can be found on the Game Maker website. Many more can be found at other places on the web.

To create a background resource in your game, use the item Create Background in the Resources menu or use the corresponding button on the toolbar. The following form will pop up.

Press the button Load Background to load a background image. Game Maker supports many image formats. Background images cannot be animated! The checkbox Transparent indicates whether or not the background is partially transparent. Most backgrounds are not transparent so the default is not. As transparency color the color of the leftmost bottommost pixel is used.

You can change the background or create a new one using the button Edit Background.

Be careful with large backgrounds. A number of graphics cards cannot handle images that are larger than the screen. So preferably keep your background images smaller than 1024x1024.

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)