Digital Paint Discussion Board
Development => General Development => Topic started by: UDead on March 21, 2008, 11:34:55 AM
-
I want to be able to stop my music that i have in my in game menu......what i would like to have it a stop butten i can click in my menu and it will stop the music so if i wanted to play a difrent song....
Heres what I have for my in game menu....
widget
yrel 16
halign center
type text
text "Music"
command "menu music_list"
and here is what its bind too...
pb2menu 1
background menu_bg_ingame
widget
xcent 0
ycent -45
halign center
type text
text " ˆËŽˆß͈ÏÕˆ¿Óˆ¯ÉˆŸÃˆË›ˆ¯Ìˆ¿ÉˆÏÓˆßԈˎ "
widget
yrel 26
halign center
type text
text " Soulja Boy "
command "play sb"
widget
yrel 16
halign center
type text
text " fergie feat sean kingston "
command "play bg"
widget
yrel 16
halign center
type text
text " Fergie Ft. Ludacris "
command "play gl"
so can someone help me...??
-
I did the same thing with a menu recently, main menu background noises.
Make a button and give it the command "snd_restart". Note this will kill all sounds playing.
-
ok...thx....now will the stander sound still work...like flag and stuff??
-
Yes, but if they are playing when you click the button they will stop too.
-
ok...ill try it.....is there anything else u have that i could mess with or add.....??
i created a map....its called "Dye #2"......