To explain RPGamer's code...
Well I assume you understand the sprite command and it's syntax, ie:
Well, if you pay attention you'll notice that "50" and "150" are coordinates: X and Y (X being horizontal and Y being veritcal). Basically what you have to do is declare a variable for each coordinate, such as X and Y, and define them. for example:
X=50
Y=50
Sprite 1, X, Y, 1
You get it?
Simple really. Now to move the sprite really all you have to do is alter the variable. For example, make it that if the user presses the right key, you'll want to move them right (or +1):
Keep in mind that you need to reposition the sprite (using the sprite command) every time you change it's coordinate, otherwise you'll have only altered the variable and done nothing with it! Also, it's assumable that you'll want to do this continually without the program abruptly ending. That's where you'll use a loop. Then you come up with something like this:
X=100 ` Sprite X coordinate
Y=100 ` Sprite Y coordinate
Do ` Begin main loop
Sprite 1,X,Y,1 ` Show the sprite, set at X and Y
If rightkey() then X=X+1 ` Alter the X coordinate to the right
If leftkey() then X=X-1 ` Alter the x coordinate to the left
Loop ` Repeat main loop
Hope that helps.
Team EOD :: Programmer/Storyboard Assistant