ID:1713682
 
(See the best response by Kaiochao.)
Is there a way to make that if sound stop playing the other sound will auto start without using spawn() proc.

mob
proc
Music()
src<<sound('Psychopath.wav',0,volume=60)
src<<sound('Dead_Ringer.wav',0,volume=60)


Is the only way to add spawn(sound.min)like this for example:

mob
proc
Music()
src<<sound('Psychopath.wav',0,volume=60)
spawn(1500)
if(src) src<<sound('Dead_Ringer.wav',0,volume=60)


Im just asking because if I add a lot of diffrend sounds in game the code looks like this nd its kinda messy

mob
proc
Music()
src<<sound('Psychopath.wav',0,volume=60)
spawn(1500)
if(src) src<<sound('Dead_Ringer.wav',0,volume=60)
spawn(1500)
if(src) src<<sound('evil_clown_laugh.wav',0,volume=60)
spawn(1500)
if(src) src<<sound('Monster_Roar.wav',0,volume=60)
sound.wait, maybe.
Can you do a simple example please?
Best response
src << sound(first_file, channel = a_channel)
src << sound(other_file, wait = 1, channel = a_channel)
// other_file waits for first_file to finish before playing
// a_channel can't be 0
Thank you so much :)
I have a question relating to this sorta.. You can see that the OP checks if the caller is still there each block.

My question is if the sound waits and the player no longer exists will it throw errors when it attempts to play the waiting sound ?

Id test this for myself but I'm at work for that next like 7 hours.