9
Programming sounds into my game Player Projectile First I have to open GameMaker. Go to sounds, right click and press Create sound.

Task 11 programming sounds into my game

  • Upload
    bencom1

  • View
    19

  • Download
    0

Embed Size (px)

Citation preview

Programming sounds into my game

Player Projectile

First I have to open GameMaker. Go to sounds, right click and press Create sound.

This then opens the sound properties window. Then I have to click load sound.

This then opens my documents where I can select a sound. Then click open.

i

I then clicked on objects on the side tab bar and right clicked on player projectile and this opens the object properties window.

Then click on movement and sound code under action which opens the event window. I input the code audio_play_sound (arcade_gun,1,false);.

Enemy projectile

First I have to open GameMaker. Go to sounds, right click and press Create sound.

This then opens the sound properties window. Then I have to click load sound.

This then opens my documents where I can select a sound. Then click open.

I then clicked on objects on the side tab bar and right clicked on enemy projectile and this opens the object properties window.

Then click on move toward player code under action which opens the event window. I input the code audio_play_sound (gunshot,1,false);.

Background Music

First I have to open GameMaker. Go to sounds, right click and press Create sound.

This then opens the sound properties window. Then I have to click load sound.

This then opens my documents where I can select a sound. Then click open.

I then went to the objects tab and selected system. This opened the object properties window where I clicked on play music.

Then click on play music code under action which opens the event window. I input the code audio_play_sound (music,1,true);.

To stop the background music repeating I clicked onto the step event then in actions clicked on destroyed. Then I added the code audio_stop_all.