Hello friends!
Got me a bit of a snag here that is making me turn blue.
I have a small bit of code that if ran alone works excellent!!'
Rem ***** Main Source File *****
Wizard:
Print "You Drew A Monster Card"
do
cls
print "Wizard, please choose (A)ttack,(F)ireball, or (L)ighting Bolt"
if Keystate(30)=1 then Zap$ = "A" : exit
if Keystate(33)=1 then Zap$ = "F" : exit
if Keystate(38)=1 then Zap$ = "L" : exit
sync
loop
exit
When A,F, or L is pressed then the program exits...simple.
HOWEVER
When I place the same bit of code within my program as a simple subroutine (add return on the end of course) then the code REQUIRES that the RETURN KEY be pressed after the letter for the routine to continue, but because RETURN was pressed, then the Returnkey() now equals "1" and it throws off the rest of the routine waiting for the RETURN key to be pressed and exits back to the Main program.
I tried both Inkey$() and now trying Keystate$() and as I said they work without pressing the RETURN key if I run it just by itself on a blank new DBP page.
When old programmers die...do they decompile?