DISCOVER
×

How to Put an Animated Background on Game Maker

Updated July 20, 2017

Game Maker is an integrated development environment (IDE) developed by YoYo Games and Mark Overmars. It uses an intuitive drag-and-drop system that allows users without programming experience to develop games and programs quickly . Game graphics are displayed on the screen through a layering system that determines the depth of each object. Objects in the background are drawn first to ensure that they appear behind the player and other interactive objects. Backgrounds can be animated to simulate both horizontal and vertical movement.

Right-click the "Backgrounds" folder in the Game Maker window and select "Create Background."

Click the "Load Background" button and select the image that you want to use. Click "OK" to save the background.

Right-click the "Rooms" folder in the Game Maker window and select "Create Room."

Click on the "Backgrounds" tab and select "Background 0." Click within the "No Background" field and select your background image from the drop-down menu.

Alter the values in the Horizontal Speed and Vertical Speed fields at the bottom of the Room Edit window. Positive horizontal and vertical numerical values yield a background that moves to the right and downward, respectively. Negative horizontal and vertical numerical values yield a background that moves to the left and upward, respectively. The further the numerical value is from 0, the faster the background will move.

Click the green checkmark in the upper left corner of the Room Edit window to save your background settings.

Tip

Animated backgrounds can be used to simulate different types of environmental effects. Water droplets moving downwards can simulate a rainstorm; clouds moving horizontally can simulate wind. Experiment with different animation speeds to find the perfect effect.

Cite this Article A tool to create a citation to reference this article Cite this Article

About the Author

Doug Vintage has been a writer since 2008 and holds a bachelor's degree in computer science. His professional writing experience includes the research and creation of internal technology articles for several law firms including WilmerHale, Crowell & Moring and Akin Gump Strauss Hauer & Feld.