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.
- 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: - 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:
- 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...