|
Post by cardigenette of corn spoon not on Jan 15, 2014 5:06:35 GMT
why can't I have more than one sound_volume going at once?
i want a sound for city, then as you move out it fades to wind and no city sound but game maker can't seem to do more than one sound_volume code at once
|
|
datsalmon
Eggom ( a fresh bubu out of the lake, still wet from swimming should eventually dry off
Posts: 40
|
Post by datsalmon on Jan 15, 2014 12:45:53 GMT
we require a programming/game making subforum i think game making would be better than the programming board we used to have because it also encompasses game theory and level design and such.
|
|
|
Post by orange08 on Jan 15, 2014 16:53:38 GMT
ccreated one and moved
|
|
|
Post by orange08 on Jan 15, 2014 16:55:12 GMT
but i would have to say in this regard GM is very limited with sound however if you're using gm 8 you might be able to use some sort of DLL. I haven't ever used one but I know the old spelunky(made in GM 8) used something called supersound.dll.
|
|
|
Post by cardigenette of corn spoon not on Jan 15, 2014 22:13:11 GMT
yeah I could probably do it in FMOD as well. thanks.
|
|
|
Post by fawfulbeans on Jan 16, 2014 8:27:21 GMT
are you trying to alter the volume of multiple instances of the same sound? you can't use the name of the original sound file otherwise it'll apply the effect to all of those sound instances.
You could try something like this.
sound[1]=sou_resource
play_sound(sound[1])
sound_volume(sound[1],1)
baring in mind this is from memory and i don't know if i'm right.
|
|
|
Post by cardigenette of corn spoon not on Jan 16, 2014 23:28:13 GMT
Yes I gave each sound it's own variable but won't work.
wind=sound_loop(windloop) city=sound_loop(cityloop)
sound_volume(city,0.5) sound_volume(wind,1)
no work. can't do more than one sound_volume
|
|
|
Post by orange08 on Jan 17, 2014 1:32:13 GMT
i did a test and it works for me in GM 8.0 pro heres the gmk: skydrive.live.com/redir?resid=47B428C6778B5925%21152arrow keys to move left and right the only reason I could see why it wouldnt work is if you used some other file type that is not WAV MP3 files wont work, for sure... in fact you can't play 2 mp3 sounds at the same time in GM 8
|
|
|
Post by cardigenette of corn spoon not on Jan 17, 2014 2:23:07 GMT
I think it's the way you did it. Maybe it's that the sounds can't all be controlled by one object? Thanks orange! and.. your code certainly looks a lot more professional than what I do...
|
|
|
Post by orange08 on Jan 17, 2014 13:55:50 GMT
oh tnhanks but ill bet sounds can be controlled by one object... Yes I gave each sound it's own variable but won't work. wind=sound_loop(windloop) city=sound_loop(cityloop) sound_volume(city,0.5) sound_volume(wind,1) no work. can't do more than one sound_volume i've never done it that way, maybe you could just try it the simple way: sound_loop(windloop) sound_loop(cityloop) sound_volume(cityloop,0.5) sound_volume(windloop,1) if that doesn't work idk what will
|
|
|
Post by cardigenette of corn spoon not on Jan 18, 2014 1:13:45 GMT
maybe im just retarded, probs. HAHAHAHAHAHAHAHAHHA LOOOOOOL
|
|
|
Post by nik on Jan 19, 2014 15:09:17 GMT
eh i use supersound for sound stuff, it supports .ogg files and has it's own volume function that seems to work nicely. SS_SetSoundVolume or something i forget
|
|
|
Post by orange08 on Jan 31, 2014 20:23:46 GMT
i just tested and the sound_volume functions don't work on MP3 sounds... sadly
|
|