how to pause/stop sounds
in
Core Library Questions
•
2 years ago
i am using keypressed to play sound samples
and wondering how i can get one key to stop or pause all sounds that are playin.
but preferably, make the sound of that last "pauser" or "stopper" key play..
eg.
if (key == 'i' ) {
i.play (0);
i.loop (2);
}
if (key == ' ' ) {
z.play (0);
i.stop();
}
i tried the most obvious, but no luck
please please help help
2