Quote: "but I don't understand select/case/endcase commands"
Quote: " select oldkeypress
case 57 : print "space key let off of" : endcase
case 30 : print "A key let off of" : endcase
case default : "Some other key let off of" : endcase
endselect"
what happens here is that oldkeypress = the keystate here then this acts like a gosub with if and endifs in them so really it's like say
sync on:sync rate 60
REM run code upon a key being let off of
do
oldkeypress=keypress
keypress=scancode()
gosub check
sync
cls
loop
check:
if oldkeypress=57 or oldkeypress=30 and keypress=0
if oldkeypress=57
print "space key let off of"
endif
if oldkeypress=30
print "A key let off of"
endif
else
print "Some other key let off of"
endif
return
or something close to this but you's would be fully working the a key in this code doesn't work