Quote:
Originally Posted by Matchewawa
What I mean, to be clear, is that if it were playing a long sound file like music or something, could the sound be stopped in the middle of playing once the function is no longer true?
|
yea just use a boolean variable,
while Boolean is true
play sound
(make sure while is in a loop infinatly)
Then make an event like:
if 's' is typed do boolean set value to false