Board Thread:Questions and Answers/@comment-162.207.198.157-20150525140202

I have been trying to make a space shooter game like Galaga. Except you can go up and down.

http://en.wikipedia.org/wiki/Galaga

This is the code I have so far,

ACLS:CLEAR PNLTYPE "OFF" SPSET 0,177,8,0,0,0 SPANGLE 0,90 SPOFS 0,141,95 SPSET 1,47,5,0,0,0 SPOFS 1,125,95 GOSUB @MOVE @SHOOT SPREAD(0), X,Y SPOFS 1,X-16,-10,30 WAIT 30 SPOFS 1,X-16,Y GOTO @MOVE

@MOVE IF (BUTTON(0) AND 1) THEN GOTO @UP IF (BUTTON(0) AND 2) THEN GOTO @DOWN IF (BUTTON(0) AND 4) THEN GOTO @LEFT IF (BUTTON(0) AND 4) THEN GOTO @RIGHT IF (BUTTON(0) AND 16) THEN GOTO @SHOOT GOTO @MOVE

@UP SPREAD (0),X,Y SPOFS 0,X,Y-5,5 SPOFS 1,X-16,Y-5,5 IF (BUTTON(0) AND 16) THEN GOTO @SHOOT GOTO @MOVE

@DOWN SPREAD (0),X,Y SPOFS 0,X,Y+5,5 SPOFS 1,X-16,Y+5,5 IF (BUTTON(0) AND 16) THEN GOTO @SHOOT GOTO @MOVE

@LEFT SPREAD (0),X,Y SPOFS 0,X-5,Y,5 SPOFS 1,X-21,Y,5 IF (BUTTON(0) AND 16 THEN GOTO @SHOOT GOTO @MOVE

@RIGHT SPREAD (0),X,Y SPOFS 0,X+5,Y,5 SPOFS 1,X-11,Y IF (BUTTON(0) AND 6 THEN GOTO @SHOOT GOTO @MOVE

When I try to make it shoot the ship stops moving, how can I fix this? 