Background Layers

The GameMaker Room Editor permits you to add backgrounds into any given room using layers. As the name implies, a background layer is simply a sprite asset that is being used as a background on a layer at a set depth within the room, and by stacking layers you can make some things draw over or under others. You can also control certain aspects of layers from code, adding or removing things, or changing certain properties of the layer or what it contains at run time. Below is a list of all the functions that can be used for editing background layers:

 

Note that if you want to set the background position or the background horizontal or vertical scrolling speed then you need to use the following general layer functions: