Game Maker
Advertisement

Play a sound.

audio_play_sound(sound_index,priority,should_loop);
  • sound_index - the name of your sound resource (translates to an integer)
  • priority - something from 0 to 100
  • should_loop = true/false

-----

Well yes, i stubled across a problem the other day and i think you should know this. In game makers games, mp3 sounds are used for background sounds and wavsounds are used for sound effects, if you try using a mp3 as a normal sound you will encounter some problems, excpesially in gamemaker : studio. just thought i would let you know.

Advertisement