Book Image

Blender Game Engine: Beginner's Guide

Book Image

Blender Game Engine: Beginner's Guide

Overview of this book

Blender Game Engine is the part of the Blender 3D editor used to create actual 3D video games. It's the ideal entry level game development environment because you don't even need to learn to program. Create a complete game using Bender's innovative logic bricks."Blender Game Engine: Beginner's Guide" is the ideal introduction to game development. Using only logic bricks, the reader will create a complete game in Blender. By the end of the book the reader will be able to use their skills to create their own 3D games.
Table of Contents (11 chapters)
10
Index

Time for action — creating sounds and music

If we could start our game by creating a library of objects, we must do the same for sounds and music. Once we make the connection to one, the rest is in the same way. So, let's start with something easy, the complexity of the sounds only depends on how good your library is.

  1. Let's use the Internet to get our sounds. In this case, we use http:// www.freesound.org. Enter whale in the search box and choose the third option, which is whale.wav, to download, as shown in the following screenshot:
    Time for action — creating sounds and music

    Tip

    You need to be logged in to download the audio tracks.

  2. Make the connection by adding an actuator called Sounds and search for the audio file in the library of your PC. In our case, we use the Up Arrow key sensor as shown in the next screenshot to hear the sound:
    Time for action — creating sounds and music
  3. Select a sound from the list, or load a new one, when you press the Open button. Choose the audio file and select the type of Play Mode, for example, if you put Play Stop, the sound...