Hello all, I've been working on the main menu aspect of my game, and have been having problems changing volumes of sounds. In my options, audio menu, I have a simple button system...
Sound Volume 10
Sound Volume 5
Sound Volume 0
Here is a Code Snippet with the troublesome code.
Main_Menu:
loop sound 1
do
cls
if button(20,140,"Single Player")then play sound 2:gosub Single_Player
if button(20,180,"Multiplayer")then play sound 2
if button(20,220,"Free-Play")then play sound 2:gosub Free_Play
if button(20,260,"Options")then play sound 2:gosub Options
if button(20,300,"Exit")then play sound 2:end
loop
`Single Player Menu Loop
Single_Player:
do
cls
if button(20,140,"New Game")then gosub New_Game
button(20,180,"Load Game")
button(20,220,"Delete Existing Game")
if button(20,400,"Back")then return
loop
Multiplayer:
cls
Options:
do
cls
ink rgb(255,255,255),0
if button(20,140,"Audio")then gosub Options_Audio
if button(20,400,"Back")then return
loop
Options_Audio:
do
sync rate 30
cls
if button(20,140,"Sound Volume 10")
set sound volume 1,10
set sound volume 2,10
endif
if button(20,180,"Sound Volume 5")
set sound volume 1,5
set sound volume 2,5
endif
if button(20,220,"Sound Volume 0")
set sound volume 1,0
set sound volume 2,0
endif
if button(20,400,"Back")then return
loop
Thanks In Advance For Taking The Time To Attempt To Help Me Out With This Little Problem, Jim
EDIT: I just realized it's out of 100%... but why is 50% not audible and 90% sounds like 50%?
What can games do for you?
www.getixinteractive.com