Programming soundsinto my game
Player Projectile
FirstI have to openGameMaker.Go to sounds,rightclickand pressCreate sound.
Thisthenopensthe soundpropertieswindow.ThenIhave toclickloadsound.
Thisthenopensmydocumentswhere Ican selecta sound.Thenclickopen.
i
I thenclickedonobjectsonthe side tab bar and rightclickedonplayerprojectileandthisopensthe
objectpropertieswindow.
Thenclickon movementandsound code underactionwhichopens the eventwindow.Iinputthe
code audio_play_sound(arcade_gun,1,false);.
Enemy projectile
FirstI have to openGameMaker.Go to sounds,rightclickand pressCreate sound.
Thisthenopensthe sound propertieswindow.ThenIhave toclickloadsound.
Thisthenopensmydocumentswhere Ican selecta sound.Thenclickopen.
I thenclickedonobjectsonthe side tab bar and rightclickedonenemyprojectile andthisopensthe
objectpropertieswindow.
Thenclickon move towardplayercode underactionwhichopensthe eventwindow.Iinputthe
code audio_play_sound(gunshot,1,false);.
Background Music
FirstI have to openGameMaker.Go to sounds,rightclickand pressCreate sound.
Thisthenopensthe soundpropertieswindow.ThenIhave toclickloadsound.
Thisthenopensmydocumentswhere Ican selecta sound.Thenclickopen.
I thenwentto the objectstaband selectedsystem.Thisopenedthe objectpropertieswindow
where Iclickedonplaymusic.
Thenclickon playmusiccode underaction whichopensthe eventwindow.Iinputthe code
audio_play_sound(music,1,true);.
To stop the backgroundmusicrepeatingIclickedontothe stepeventtheninactionsclickedon
destroyed. ThenIaddedthe code audio_stop_all.

Task 11 programming sounds into my game

  • 1.
    Programming soundsinto mygame Player Projectile FirstI have to openGameMaker.Go to sounds,rightclickand pressCreate sound. Thisthenopensthe soundpropertieswindow.ThenIhave toclickloadsound.
  • 2.
    Thisthenopensmydocumentswhere Ican selectasound.Thenclickopen. i I thenclickedonobjectsonthe side tab bar and rightclickedonplayerprojectileandthisopensthe objectpropertieswindow.
  • 3.
    Thenclickon movementandsound codeunderactionwhichopens the eventwindow.Iinputthe code audio_play_sound(arcade_gun,1,false);. Enemy projectile FirstI have to openGameMaker.Go to sounds,rightclickand pressCreate sound.
  • 4.
    Thisthenopensthe sound propertieswindow.ThenIhavetoclickloadsound. Thisthenopensmydocumentswhere Ican selecta sound.Thenclickopen.
  • 5.
    I thenclickedonobjectsonthe sidetab bar and rightclickedonenemyprojectile andthisopensthe objectpropertieswindow. Thenclickon move towardplayercode underactionwhichopensthe eventwindow.Iinputthe code audio_play_sound(gunshot,1,false);.
  • 6.
    Background Music FirstI haveto openGameMaker.Go to sounds,rightclickand pressCreate sound. Thisthenopensthe soundpropertieswindow.ThenIhave toclickloadsound.
  • 7.
    Thisthenopensmydocumentswhere Ican selectasound.Thenclickopen. I thenwentto the objectstaband selectedsystem.Thisopenedthe objectpropertieswindow where Iclickedonplaymusic.
  • 8.
    Thenclickon playmusiccode underactionwhichopensthe eventwindow.Iinputthe code audio_play_sound(music,1,true);. To stop the backgroundmusicrepeatingIclickedontothe stepeventtheninactionsclickedon destroyed. ThenIaddedthe code audio_stop_all.