Posted: 21st Dec 2002 6:25
Sure, it is very small and dull. But, it is my first good code I've made. I normally, actually, havent really been making codes, so I started today and got this. When you press the down key it says something in english and when you push the up key it says the same thing, only in spanish! here is the code:

+ Code Snippet
REM : the colors and SYNC
INK=200,100

REM : controls
downkey=1
upkey=1
DO
if downkey()=1 then PRINT "Hi. This is a simple text command!" else if upkey()=1 then PRINT "Hola.  Esto es un comando simple del texto!"
LOOP

wait downkey()=1
wait upkey()=1

SYNC ON


NOTE: The right side of this is freaked up. Dont worry about it, though.
Posted: 21st Dec 2002 21:38
that code has a few problems, the biggest being that SYNC ON is supposed to go BEFORE the loop, and in the loop you need the command SYNC if you are trying to control the refresh rate.

You don't need the else in the boolean statement, it would be cleaner to make it 2 lines.

You set 2 variables that you never use, downkey and upkey.

And the two waits are arbitrary because they are never encountered. There is no way to leave the do loop.
Posted: 22nd Dec 2002 1:14
Yeah, I know, but it was my first code.