I understand what he meant now. Don't know why I didn't get it sooner. Ok, when the sound needs to be played, do a gosub or create a function (or I suppose you could just do it in the code), that, when it needs to play the sound, you use
if spacekey()=1
loop "rowboat.x",2
gosub soundzplay
endif
soundzplay:
returnInt = sound playing 1
if returnInt = 0 then play sound 1
return
I guess. May be a little off in a few details, as I am at work right now and can't try it, but that is the general idea.
EDIT: Oops, fixed the code snippet. Had a 1 instead of a 0 for returnInt. That
should work!
"I attribute the quarrelsome nature of the Middle Ages young men entirely to the want of the soothing weed."
-Jerome K. Jerome(1859-1927),Writer