Board Thread:Questions and Answers/@comment-24386245-20140810124312/@comment-24386245-20140811014615

So for this to go on while the character moves, I do this?

@LOOP

GOSUB @AI

GOTO @LOOP

@AI

FOR I=F TO 192

'F is just so the loop won't go by itself without doing anything else, i.e. ignoring everything else until this For-Next is done

SPOFS 0,I,SIN(I)

'I want the enemy to go left, but sine up/down

NEXT

RETURN