Hi,
Here is a question for a pro. I am beginning to use DB for my future game projects.
I understand inkey$() function returns a character WHENEVER a key is pressed. Unlike other languages, the key is not recorded AFTER it was released.
Because of this functionality, the user must be told to press and HOLD the key until the function gets it. The snippet is shown below.
Is there any other command that would "remember" the key being pressed or a better algorithm?
print "Press & hold Q to quit";
repeat
print " .";
wait 1000
until inkey$() = "q" or inkey$() = "Q"
` wait until key is released
while inkey$() = "q" or inkey$() = "Q"
endwhile
end