Thread:Randomouscrap98/@comment-5106053-20140805195949/@comment-9531161-20140805204146

Hmm, why so complicated? Try this for @MOV:

@MOV B=BUTTON IF B AND 1 THEN Y=Y-1:SPCHR 0,76 IF B AND 2 THEN Y=Y+1:SPCHR 0,68 IF B AND 4 THEN X=X-1:SPCHR 0,72 IF B AND 8 THEN X=X+1:SPCHR 0,64 IF!(SPCHK(0)AND 8)THEN SPANIM 0,4,16 SPOFS 0,X,Y RETURN Since you're using BUTTON so much, it's OK to assign it to a short variable. Also, doing it like this automatically accounts for diagonals. There's a way to do the movement (and account for diagonals) with only math, but then it complicates the SPCHR.

X=X+((B AND 8)==8)-((B AND 4)==4) Y=Y+((B AND 2)==2)-((B AND 1)==1)

The other problem with this is that it's actually slightly slower than regular if statements.