08-11-2003, 05:00 AM
so? then it only needs 2 lines:
or if you wanted to do that silly "wait for key to be lifted" thing:
but you're still using excess code. besides, if the user presses more than one key, who cares?
Code:
10 a$ = inkey$
20 IF a$ = "" THEN GOTO 10
or if you wanted to do that silly "wait for key to be lifted" thing:
Code:
10 a$ = inkey$
20 IF inkey$ <> "" then b = 1 else b = 0
30 IF a$ = "" AND b=0 THEN GOTO 10 else if a$ <> "" and b = 1 then goto 20
but you're still using excess code. besides, if the user presses more than one key, who cares?
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry