Top Banner
Programming sounds into Game maker Ben White
6

Iain game maker

Jan 20, 2017

Download

Spiritual

terry96
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Iain game maker

Programming sounds into Game makerBen White

Page 2: Iain game maker

To begin, I began by firstly programming a sound that played once the arrow object is created. When this object is created in-game, it means that an archer has fired it, so I needed a sound to convey that and arrow had been shot. I went to the ‘create’ tab as the sound needed to be played as soon as the arrow was implemented or created, added a sound option, selected the right sound and made sure it did not loop.

Page 3: Iain game maker

This sound is to be played as soon as the game starts and is the games back ground music. I did the same as before, but I added the sound on a ‘create’ tab on my player as the sound should stop and start when he is currently alive in-game. I needed this to loop too, so I made sure this option was set to true.

Page 4: Iain game maker

Programming this sound was quite different. I had to actually script it into the game. The sound plays when an enemy is defeated, and this is would be very complicated to do following previous methods so I made sure that the game would check if an enemy was deceased in a script before playing this sound. I used the ‘audio_play_sound()’ code.

Page 5: Iain game maker

This sound is to be played whenever the character jumps, so I coded it so that when the character jumps and is in the air, this sound will play.

Page 6: Iain game maker

Here, when the character shoots his flames, I would like two sounds to play. There is a flame noise and a triple hit noise, as when he attacks, he shoots 3 fire balls one after another. I added a sound action into the ‘Press C-key’ tab as this was the attack button. When C is pressed, both sounds will play and they will not loop.