Problem description:ok i don't reely hav a code for this problem but when i want to play a sound file how would i access the actual sound?
ID:145703
Jan 10 2006, 10:36 am
|
|
obj/PlaySong
icon = 'S.dmi' icon_state = "RandSong" screen_loc = "14,12" layer = 7 Click() var/dd = 0 var/a = input("What song do you want to play?")in list("") var/b = input("Should it replay over and over?")in list("Yes","No") if(b=="Yes") dd=1 if(a=="coolmidi") usr << sound(null) usr << sound('.mid',dd) if(a=="graduation") usr << sound(null) usr << sound('.mid',dd) if(a=="better off alone") usr << sound(null) usr << sound('.mid',dd) try useing this but fill in the stuff you normaly do Ty GD |
usr << sound('Sound.wav')
note that the sound file will need to be in the games file area