Board Thread:Questions and Answers/@comment-1490123-20140719002944/@comment-24386245-20140805131801

Here's what I USED to have in my programs, until I found out that if you hold a button, then immediatly press another one, the animation keeps running. Anyway, here goes.

ACLS

PNLTYPE "OFF"

CLEAR

X=0:Y=0

SPSET 0,64,0,0,0,0

@LOOP

SPOFS 0,X,Y,1

BT=BUTTON(0)

IF BT AND 1 THEN GOTO @UP

IF BT AND 2 THEN GOTO @DOWN

IF BT AND 4 THEN GOTO @LEFT

IF BT AND 8 THEN GOTO @RGHT

IF ANIM==1 THEN IF BT AND 0 THEN SPANIM 0,0,0,0:ANIM=0

GOTO @LOOP

@UP

IF ANIM==1 GOTO @SKIP1

SPCHR 0,(Whatever the Up sprite is),0,0,0,0

SPANIM 0,4,6,0

ANIM=1

@SKIP1

Y=Y-1

GOTO @LOOP

@DOWN

IF ANIM==1 THEN GOTO @SKIP2

SPCHR 0,(Animation for down),0,0,0,0

SPANIM 0,4,8,0

ANIM=1

@SKIP2

Y=Y+1

GOTO @LOOP

@LEFT

IF ANIM==1 THEN GOTO @SKIP3

SPCHR 0,(ANIMATION FOR LEFT),0,0,0,0

SPANIM 0,4,6,0

ANIM=1

@SKIP3

X=X-1

GOTO @LOOP

@RGHT

IF ANIM==1 THEN GOTO @SKIP4

SPCHR 0,(ANIMATION FOR RIGHT),0,0,0,0

SPANIM 0,4,6,0

ANIM=1

@SKIP4

X=X+1

GOTO @LOOP

So, yeah... If It doesn't work, tell me.