GameMaker: Studio

GameMaker: Studio

View Stats:
Help - sounds are cutting eachother off
So I recently added a few .wav sounds to my game and it seems as though when the coin sound plays the background music stops, I am only using .wav sounds at this current point in time.

Would it be a better idea to use .mp3 files instead?

Also when i code sound_play(snd_coin1); it just doesn’t play at all. But when i use it in a drag and drop function it works.

What is up with game maker?

Would it be a better idea to use my sounds externally?
< >
Showing 1-3 of 3 comments
Damonic Feb 7, 2014 @ 1:55pm 
Most likely you have the global game settings set up incorrectly. Open them up and in the 'General' tab check to see if the 'Use New Audio Engine' is checked. If it is then sound_play(sound); wont work. You will need to use audio_play_sound(soundName,priority,loops);. For example: audio_play_sound(snd_coin1, 1, 0); which means play the sound snd_coin1, play this sound at priority level 1, and do not loop the sound. For background its the same thing but instead of audio_play_sound it is audio_play_music without the priority level. So it would be audio_play_music(snd_bgMusic, 1);. Which is just saying play the sound snd_bgMusic, and loop the sound. 1 = true, 0 = false.
Damonic Feb 7, 2014 @ 1:57pm 
Also if you are making the game for HTML5 you want to make sure that 'Use New Audio Engine' is unchecked and use the code sound_play() instead of audio_play_xxx();. Otherwise it wont work correctly.
Hey thanks a million man reallly apreciate it :)
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Feb 6, 2014 @ 6:04pm
Posts: 3