LOCATE allows you to print in a specific place on
LOCATE 5, 10
LOCATE 20, 70
The two numbers after LOCATE are the coordinates
where the print will be. Just like coordinates in
math class, these numbers give the row and the
column. The first number in LOCATE is the row, or
how far down the screen the print will start. The
second number is the column, or how far over the
print will start.
Let's use some random numbers, COLOR and LOCATE
to make a more interesting version of our first looping
Row = INT(RND * 23 + 1)
Column = INT(RND * 79 + 1)
LOCATE Row, Column
Color1 = INT(RND * 15 + 1)
COLOR Color1, 0
PRINT "Ted was here!";
Kind of messy, but interesting.
How about a clock?
LOCATE 1, 1
TIME$ is a special variable that contains the
current time. Press Break to stop.