I want to put a graphic on the screen and move it left and right using the 'm' and 'n' key (like a ship in space invaders for example). Why doesn't the attached code work (its horribly slow and jerky)? Is there a better way of doing it? Also, how do I load a graphic from elsewhere into my program (say one created by PAINT) rather than draw it in the program itself (like below). Thanks.
SCREEN 1
DIM box%(1 TO 200)
x1% = 0: x2% = 10: y1% = 0: y2% = 10
LINE (x1%, y1%)-(x2%, y2%), 2, BF
GET (x1%, y1%)-(x2%, y2%), box%
x1% = 100: y1% = 100
DO
IF INKEY$ = CHR$(109) THEN
x1% = x1% + 10
END IF
IF INKEY$ = CHR$(110) THEN
x1% = x1% - 10
END IF
PUT (x1%, y1%), box%, XOR
LOOP UNTIL INKEY$ = CHR$(27)
SCREEN 1
DIM box%(1 TO 200)
x1% = 0: x2% = 10: y1% = 0: y2% = 10
LINE (x1%, y1%)-(x2%, y2%), 2, BF
GET (x1%, y1%)-(x2%, y2%), box%
x1% = 100: y1% = 100
DO
IF INKEY$ = CHR$(109) THEN
x1% = x1% + 10
END IF
IF INKEY$ = CHR$(110) THEN
x1% = x1% - 10
END IF
PUT (x1%, y1%), box%, XOR
LOOP UNTIL INKEY$ = CHR$(27)