Continuous sound in a loop?
Posted: 12 Sep 2017, 12:48
How to make the sound run continuously in a loop?
Let's say this is the code, when you press w it starts music, releasing the key silences it
The result when you hold W is continuous first 25 milliseconds of the looooooongsound.wav.
How to make it so it doesn't replay the looooooongsound.wav??
maybe with A_index in a loop?
Let's say this is the code, when you press w it starts music, releasing the key silences it
Code: Select all
loop,
{
if GetKeyState("w","P")
soundplay,looooooongsound.wav
else
soundplay,empty.wav ;its purpose is to break the looooooongsound.wav
sleep,25
}
return
How to make it so it doesn't replay the looooooongsound.wav??
maybe with A_index in a loop?