Glad you found what you were looking for. For anybody else looking for the same thing...
From the help file for SPRITE
SPRITE
This command will set the position and image number of the specified sprite.
Syntax
SPRITE Sprite Number, XPos, YPos, Image Number
Parameters
Sprite Number
Integer
The sprite number
XPos
Integer
The x position of the sprite
YPos
Integer
The y position of the sprite
Image Number
Integer
The image number that will be used for the sprite
Notice that the XPos and YPos are integers. If you want to slow them down, do it some other way than using .01 or .02 changes.
Here's an example:
ink rgb(255,0,0),0
box 0,0,10,10
get image 1,0,0,10,10
xpos=250
ypos=250
sprite 1,xpos,ypos,1
do
if leftkey() <> 0 then dec xpos
if rightkey() <> 0 then inc xpos
if upkey() <> 0 then dec ypos
if downkey() <> 0 then inc ypos
sprite 1,xpos,ypos,1
wait 1
loop
or even
ink rgb(255,0,0),0
box 0,0,10,10
get image 1,0,0,10,10
xpos=250
ypos=250
sprite 1,xpos,ypos,1
do
xpos = xpos + rightkey()-leftkey()
ypos = ypos + downkey()-upkey()
sprite 1,xpos,ypos,1
wait 1
loop
or even as tight as this...
ink rgb(255,0,0),0
box 0,0,10,10
get image 1,0,0,10,10
set text opaque
sprite 1,250,250,1
do
sprite 1,sprite x(1)+rightkey()-leftkey(),sprite y(1)+downkey()-upkey(),1
wait 1
loop