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.