Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: HelLRaiseR on May 09, 2009, 02:51:52 PM

Title: Sprite sound volume
Post by: HelLRaiseR on May 09, 2009, 02:51:52 PM
Hi,

I've several sprites that makes repetitive sounds, for example, a metalic letter with wind swing that make a creacking sound.

When the player has a long time in the scene, the sound is very irritate and I want to play the sound in a low volume.

Can I change the volume of the sprite sound?

Thanks in advance.

Title: Re: Sprite sound volume
Post by: Mnemonic on May 09, 2009, 06:19:51 PM
No, if you need to change sound volume individually, you'll need to use the PlaySound() script method of a given object. Then you can change the object's sound volume using SetSoundVolume() method.
Title: Re: Sprite sound volume
Post by: HelLRaiseR on May 10, 2009, 07:11:13 PM
Thanks Mnemonic, I supose that the better solution is send a event in specific frame and use the PlaySound and SetVolume methods in the script event. isn't it?
Title: Re: Sprite sound volume
Post by: Mnemonic on May 11, 2009, 11:03:23 AM
If you need the sound to be tied to a specific animation frame, then yes, that's the way to go.
Title: Re: Sprite sound volume
Post by: HelLRaiseR on May 11, 2009, 12:59:42 PM
Thanks