Page 1 of 1

VOLUME PROBLEM

PostPosted: Sat May 09, 2009 6:43 pm
by jimmynewguy
I want the variable volume to equal the musicvol so i can save volume in my game to load for settings....wow that sounds stupid. :lol: it uses a slide bar just to let you know.

Demo to show you what i mean.

Re: Slide bar issue

PostPosted: Sat May 09, 2009 11:21 pm
by skydereign
Not sure what you were looking for, I somewhat fixed the actual sliding, but did not implement the saving.

Re: Slide bar issue

PostPosted: Sat May 09, 2009 11:40 pm
by jimmynewguy
thanx, but i knew how to do that part lol....i just don't know why the variable won't be a decimal i wanted the variable "volume" to equal the musicvol :)

Re: Slide bar issue

PostPosted: Sun May 10, 2009 12:09 am
by skydereign
But you know how to save, what is the problem? All you would need to do is save it. musicvol goes from 0-1. So why don't you want the decimal, or is that not what you meant...

Re: Slide bar issue

PostPosted: Sun May 10, 2009 1:38 am
by jimmynewguy
no....for some reason the variable "volume" will only be 1 or 0 when i say "volume = musicvol;" it wont be like .9 or .4 or any decimal just 1 or 0

Re: Slide bar issue

PostPosted: Sun May 10, 2009 2:21 am
by jimmynewguy
i even got rid of the slide bar, look.
make a vaiable called "volume"
then make a text actor called volumetext or something.

then on keydown for up and down make volume ++ -- accordingly, are you with me?
then for drawactor on volumetext have textNumber = volume; musicvol = (volume/10); then have music play. if the "volume" variable is 10 or higher music will be hearable, if it's 9 or less then music doesn't play at all had my speakers all the way up i was so mad..........

that's what i'm talking about.
i don't understand why this doesn't work :oops:

Re: VOLUME PROBLEM

PostPosted: Sun May 10, 2009 3:09 am
by makslane
Make sure the variable colume is real (float) not a integer variable.

Re: VOLUME PROBLEM

PostPosted: Sun May 10, 2009 3:19 am
by jimmynewguy
are you kidding me? makslane i love you in the most heterosexual way possible :)
ive never used real's before lol i didn't know what they even ment :lol: