Board Thread:Questions and Answers/@comment-24720902-20130524153123/@comment-216.110.201.79-20140630171450

216.110.201.79 wrote: try this...

spset 0,(sprite num.),0,0,0,0

sphome 0,100,100

y=10

x=10

b=button

@move

vsync 1

if b and 1 y=y-1

if b and 2 y=y+1

if b and 4 x=x-1

if b and 8 x=x+1

goto @move

spofs 0,y,x

(this is not included)

if you make the numbers after y=y-,y=y+,x=x-,x=x+ bigger the sprite will move faster.