Hey guys, I'm having trouble getting a setup for a game that I am creating in which I have a soundtrack looping infinitely until the player looses. I can get the track to loop by scripting (When Pressed) (Repeat Until { }) (Play sound until done) but I can't get it to stop no matter what trigger I put in. Can anyone help me with this?
Offline
Instead of stopping the song, you can mute it.
when gf clicked set volume to [100]% forever play sound [my looped sound v] until done end
when gf clicked set [mute v] to [0] forever if <key [space v] pressed?> if <(mute)=[1]> set volume to [0]% set [mute v] to [0] wait until <key [space v] pressed?>//so that it wont glitch out end if <(mute)=[0]> set volume to [100]% set [mute v] to [1] wait until <key [space v] pressed?>//so that it wont glitch out end
Last edited by Ideas (2012-12-22 01:49:24)
Offline