global _timer
do
Access=doubleP(200,Access,100)
if Access=2 then ink rgb(rnd(255),rnd(255),rnd(255)),0 : print "You just tapped the upkey twice!"
loop
function doubleP(ScanC,Access,WaitVal)
if keystate(ScanC)>0 : activTrigger=1 : endif
if activTrigger=1 : _timer=timer() : endif
if (timer()-_timer)<WaitVal and Access=1 then TimerOffset=1 : _timer=0
if (activTrigger+Access+TimerOffset)=3 : Access=2 : else : Access=activTrigger : endif
endfunction Access
Hmm.... for some reason that doesn't work, anyone else?
Your signature has been erased by a forum hacke - I mean, a mod