Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: PureGhostGR on Thu 16/10/2003 22:55:31

Title: Sound Volume & Hi-Color Backgrounds.
Post by: PureGhostGR on Thu 16/10/2003 22:55:31
Greetings,

a. How can I change the sound volume through script.

Lets say that I have a sound file and I want it to smoothly fade out at the end instead of being cut roughly.  Should I use a sound editor on the sound file, or is it possible through scripting?

b. Regarding background imports, even though I am making a hi-color game, I get a message about the amount of colors distributed to the background image whenever I import one. Also there is a slight amount of color loss and definition.

I've tried saving the image in various ways (BMP,PCX,index,etc), and when I import the good resolution BMP all I get is a dark red hue instead of an image.

Any ideas?

Thanks.
Title: Re:Sound Volume & Hi-Color Backgrounds.
Post by: Ishmael on Fri 17/10/2003 09:56:37
a. Study the SetDigitalMasterVolume script command, found under Multimedia functions. In conjunction with a while loop you should get this done...

b. Um... are you sure your game is hi-color? and... are you using which paint program? I have photoshop, and I usually just save the RGB image as bmp, and sometimes the colors get wierd...
Title: Re:Sound Volume & Hi-Color Backgrounds.
Post by: PureGhostGR on Sat 18/10/2003 00:48:11
Thanks TK, I'll do that.