Tutorial:Making a sound effect

In this tutorial, we are going to make a sound effect for our game.

Scripting
We need two objects, a and a, inserted into. Sound objects contain members for managing sounds. There is a property called SoundId, which is the id of the sound that is being played. More information on Sound IDs can be found here. Now the sound is in the sound object, but it doesn't play. In order to make it play, open the script, and type the following code: This will cause the sound to play, and stop, automatically. This can be used anywhere to give your game a neat sound effect.