I have a sound file that starts when the user holds down the S key. If they release the S key the sound stops.
Function playSoundWhenS(skeydown)
key = keystate(31)
if key = 1 and skeydown = 0 then play sound 1
if key = 0 and skeydown = 1 then stop sound 1
skeydown = key
EndFunction skeydown
What I need is a 2nd sound file to play ONLY if the WHOLE 1st sound file is played. So if the user releases the S Key before the 1st sound file is done the 2nd sound file wont play.
(The 2nd sound file doesnt need the S key to be kept pressed in order to play, like the 1st sound file)
Any Help Please...