• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GML [SOLVED] audio_sound_play Priority? (manual)

Dr_Nomz

Member
So I was reading the manual (shocking, I know.) and one of the things about audio_sound_play is that apparently the second variable does nothing?
Quote:

QUOTE](the actual value is arbitrary, and can be from 0 to 1 or 0 to 100, as GameMaker: Studio will prioritize them the same)[/QUOTE]So does it really mean that it does nothing? Or does it actually do something? If so, higher or lower numbers, which means it plays over other sounds?
 

FrostyCat

Redemption Seeker
Sounds with higher priority will always play over sounds with lower priority if the audio engine is forced to choose, so that argument has a point.

What the Manual meant was that only the relative ordering of the priority values matters. For example, with no other sounds being involved, there is no difference between playing A at 0 and B at 1, and playing A at 0 and B at 100. The relative ordering has not changed, in both cases the priority of B is greater than the priority of A. You should pick a range as a convention and stick to the same one throughout the project.
 
Top