the code:
do
Rem Load sounds
load sound "snare.wav",1
load sound "kick.wav",2
load sound "hi.wav",3
Rem press key
if keystate(2)=1 then play sound 1
if keystate(2)=0 then stop sound
if keystate(3)=1 then play sound 2
if keystate(3)=0 then stop sound
if keystate(4)=1 then play sound 3
if keystate(4)=0 then stop sound
if keystate(5)=1 then end
loop
the apologize: there could be littie mistakes in code becouse ı can't exactly remember it...
the matter: when ı run program and hit a key of 1, 2, or 3 the sound starts but not stops it continue till ı stop pressing.
the question: how could ı play that sound one time per one key hit?
the note: ı want that when ı hit all keys at the same time ı must take all sound.(it's drum you know.)
thanx for help.
You didn't choose where to born...
But you could choose HOW TO DIE!
Slaughter