here is the beginning of it.bgfill fills the screen with the grass sprite.spset sets the sprite to the specified management number (for now on mn). the button command looks if a certain button is being pressed. put that in a if then loop so if this button is pushed then goto this line of code.the spofs command moves the specified sprite to the x and y positions that you want.
the anim is a array that tells how many "frames" goes by and to change the sprite based on how long the button is pressed down. spchr is a command to change the sprite to the one you want so thing like anamation can take place.vsync waits the specified frames in this case 1 before going to the next line.here the x concordinent is add by one to move the sprite up the screen becase of spofs x,y.
You are updating x, and y variables but not using spofs to update the sprite's position onscreen. If you are getting a syntax error, please tell us the line number and error message.