how might i script this cat to be controlled by the d-pad? example¦ when arrow buttons are pressed correctly: up shows his back on screen, left shows his face facing left, etc.
@LOOP
WAIT 1
IF BUTTON()==1 THEN Y=Y-1
IF BUTTON()==2 THEN Y=Y+1
IF BUTTON()==4 THEN X=X-1
IF BUTTON()==8 THEN X=X+1
SPSET 0,(Sprite number)
SPOFS 0,X,Y
GOTO @LOOP