Answered
setVolume on multiple sound objects
Hi there
I'm trying to use setVolume on individual sound objects. What I'm finding is that when I set the volume for one object, it sets it for all sound objects.
My controlling script is a class object that defines a new sound object as a property of itself:
this.sound_object = new Sound();
this.sound_object.attachSound(this.sound_name);
this.sound_object.setVolume(vol);
Is this how it's meant to work? I'd be stoked if there was a way to control the volume of individual sound objects.
I'm trying to use setVolume on individual sound objects. What I'm finding is that when I set the volume for one object, it sets it for all sound objects.
My controlling script is a class object that defines a new sound object as a property of itself:
this.sound_object = new Sound();
this.sound_object.attachSound(this.sound_name);
this.sound_object.setVolume(vol);
Is this how it's meant to work? I'd be stoked if there was a way to control the volume of individual sound objects.
