1. Task 11
Jake Hyatt
Programming Sounds Into My Game:
To insert a sound into my game I right clicked on the “sounds” tab and clicked on “create
sound”. I then selected the right sound and gave it an appropriate name so that I knew what
it was for.
I inserted the rest of my sounds using the same process that I just mentioned.
2. Task 11
Jake Hyatt
After this I created objects for the title music, the main music and the death screen sound. I
used the same code on each of these which was simple to do. I added an event so that when
the room starts the right piece of music will play and when the room ends the music for that
particular room will also end. This makes the game continuous as the music will never
overlap with each other due to this.
To my enemy object I added a piece of code to the event when the laser comes into contact
with the enemy so that the right sound will play so you know that the enemy is dead. The
code is simple and basically says that when the enemy is shot by the player, play the sound
“EnemyDeath” and the “false” means that the sound wont loop over and over again.
3. Task 11
Jake Hyatt
I usedthe same proccessfor whenthe enemyprojectilehitsthe playerexcept that this one is called
“PlayerDeath” so that the sound is different from the enemy death.
Also on my player object I made it so that whenever the player shoots a laser then the sound
“PlayerShot” would play and not be looped as that would be unessasary and make the sound
unbarable to listen to.
Finally I used the same process on my enemy object so that whenever they shoot at the
player the sound “EnemyShot” will play and also doesn’t loop as there will always at least be
3 enemies on the screen at one time and they fire a lot projectiles so the sound would
become irritable.