How to Add Sounds to Your Game in GameMaker: Studio

By Michael Rohde

GameMaker: Studio allows you to design and build games with sound and animation. Sounds make up a large part of games these days. Everything from moody background music that builds as the player anticipates a challenging boss battle, to explosions, bullets firing, a character jumping (sproing!), and more.

To add a Sound resource to GameMaker, follow these steps:

  1. Choose the icon that looks like an old-fashioned stereo speaker (see this figure).

    The Sound Properties window opens.

    Click this icon to create a new Sound.

    Click this icon to create a new Sound.
  2. To load a sound, click the Load Sound button (see this figure).

    The Sound Properties window.

    The Sound Properties window.
  3. Navigate to a sound file that you previously saved on your PC.

  4. To play and stop the Sound, click the Play and Stop buttons (refer to this figure).

    You hear the Sound when you click Play and it continues to play until you click the Stop button.

  5. You can edit the Sound by clicking the Edit Sound button (refer to this figure).

    You need to configure an external sound editor to work with GameMaker in order to edit a Sound. Read on for instructions on how to do this.

  6. Click OK to save and close the Sound Properties window.

You can configure external editors to work within GameMaker. This includes sound editors, image editors, and code editors. To configure an external editor to work in GameMaker, follow these steps:

  1. From the main menu, choose File→Preferences.

    The Preferences window appears.

  2. Click the Editors tab (shown in this figure).

    The Editors tab of the Preferences dialog box.

    The Editors tab of the Preferences dialog box.
  3. Click the Open (…) button for the type of editor that you want to configure to work with GameMaker.

    Your options are Code Editor, Image Editor, SWF Viewer, and Sound Editors (for WAV files or MP3 files).

    A navigation window opens from which you can navigate to and select the editor you want on your PC.

  4. Click OK to save and close the Preferences window.