Code:
mob Login() usr.GameTheme=1 GameTheme() proc GameTheme() if(usr.GameTheme==1) usr << theme1() usr.Sound="Theme-01" GameTheme() else if(usr.GameTheme==2) usr << theme2() usr.Sound="Turtle-island" GameTheme() else GameTheme() theme1() usr << 'Theme-01.mid' sleep(980) if(usr.Sound=="Theme-01") usr << GameTheme() theme2() usr << 'Turtle-island.mid' sleep(830) if(usr.Sound=="Turtle-island") usr << GameTheme() turf music BeginnerstownEnd Entered(O) usr.GameTheme=2 usr.loc = locate(/turf/Locations/TurtleIslandTutorialOut) usr << sound(null) usr.GameTheme()
|
Problem description:
Hi guys,
I have a question i made this simple sound system for my game it works just fine but now i had a request from some players to make a mute button and a button to lower the music volume or make it higher. I tried reading about it but the things i tried arent working so i thought i try it at the forums.
I placed my code up here maybe someone can help me with this one.
So its basically just going to be a Volume proc.
Greetings,
Chaokai
You're going to cause some major loops because of the way you programmed this. It looks like you weren't even paying attention to what you were typing.
As for volume, BYOND can't play sounds from a certain point. As such, if you want to change the volume, it will have to start again from the beginning. Press F1 in Dream Maker, go to the Topic tab, and type in "sound". Double click the entry that says "sound proc" and volume is covered right there.