lord_sasquatch Posted December 10, 2014 Share Posted December 10, 2014 Im having a problem in visualbb im getting syntax error line 62 column 33 when i try to compile. This is the first time i have used this program and i am just following a basic tutorial. Im building up to making my own homebrew, sasquatch invaders! Probably something obvious that is wrong but i cant find it. Code Below, Thanks I will also attach the file of the game so you can have a look more easily. rem Generated 10/12/2014 19:36:26 by Visual bB Version 1.0.0.554 rem ********************************** rem *<filename> * rem *<description> * rem *<author> * rem *<contact info> * rem *<license> * rem ********************************** playfield: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ................................ ................................ ................................ ................................ ................................ ................................ ................................ ................................ ................................ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX end COLUBK = $66 COLUPF = $D8 missile0height=4:missile0y=255 NUSIZO = 16 sprites player0x=50 player0y=50 player1x=20 player1y=20 player0: %01111100 %11111110 %01111100 %01010100 %01010100 %01111100 %00111000 %00000000 end player1: %00101000 %00111000 %10010010 %10010010 %11111110 %00111000 %00111000 %00111000 end if missile0y>240 then goto skip missile0y = missile0y-2;goto draw_loop skip if joy0fire then missile0y=player0y-2:missile0x=player0x+4 draw_loop drawscreen goto sprites default.bas Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted December 10, 2014 Share Posted December 10, 2014 This is probably the problem for more than just one line of code: randomterrain.com/atari-2600-memories-batari-basic-commands.html#indent Quote Link to comment Share on other sites More sharing options...
iesposta Posted December 10, 2014 Share Posted December 10, 2014 ...2;goto draw_loop Semicolon makes what is after a rem statement. I think you need a ":" Quote Link to comment Share on other sites More sharing options...
ZackAttack Posted December 10, 2014 Share Posted December 10, 2014 Also you entered NUSIZO instead of NUSIZ0. (The last character should be the number zero instead of the letter O) Quote Link to comment Share on other sites More sharing options...
lord_sasquatch Posted December 10, 2014 Author Share Posted December 10, 2014 Feel a bit stupid now Will see if these things fix it thanks! Quote Link to comment Share on other sites More sharing options...
lord_sasquatch Posted December 10, 2014 Author Share Posted December 10, 2014 Ok that fixed the error on line 62 but now i have an error on line 27! Thanks for the help Quote Link to comment Share on other sites More sharing options...
+SpiceWare Posted December 10, 2014 Share Posted December 10, 2014 Also you entered NUSIZO instead of NUSIZ0. (The last character should be the number zero instead of the letter O) Using jEdit can help you see problems like that. The first 2 screenshots in that post show the visual difference between typing RESPO (letter O) and RESP0 (number 0, as it should be). Quote Link to comment Share on other sites More sharing options...
lord_sasquatch Posted December 10, 2014 Author Share Posted December 10, 2014 Using jEdit can help you see problems like that. The first 2 screenshots in that post show the visual difference between typing RESPO (letter O) and RESP0 (number 0, as it should be).Thanks I'll give that a shot Quote Link to comment Share on other sites More sharing options...
lord_sasquatch Posted December 10, 2014 Author Share Posted December 10, 2014 Figured it out I forgot to indent a couple of lines. Thanks for all the help! Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted December 11, 2014 Share Posted December 11, 2014 Using jEdit can help you see problems like that. The first 2 screenshots in that post show the visual difference between typing RESPO (letter O) and RESP0 (number 0, as it should be). When Enable Syntax Checking is turned on in Visual batari Basic, the same thing happens. NUSIZ0 is color coded when a zero is used and not color coded when the letter O is used. Figured it out I forgot to indent a couple of lines. Thanks for all the help! Yep, that's what this post said: This is probably the problem for more than just one line of code: randomterrain.com/atari-2600-memories-batari-basic-commands.html#indent Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.