pacgreg Posted December 18, 2013 Share Posted December 18, 2013 After freeing up 4 variables by assigning certain things to bits, Vbb suddenly started giving me errors at the first like that sets the kernel. Did I forget something that needs to be there to assign bits? I could compile earlier today, but it stopped functioning after I started to add the bit{s}. Could someone help and/or give the code a quick lookover? Thanks! Greg Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted December 19, 2013 Share Posted December 19, 2013 If you post it, I can take a quick peek and see if I notice a problem. Quote Link to comment Share on other sites More sharing options...
pacgreg Posted December 19, 2013 Author Share Posted December 19, 2013 If you post it, I can take a quick peek and see if I notice a problem. Whoops, thought I did attach it. Gauntlet007.bas Quote Link to comment Share on other sites More sharing options...
RevEng Posted December 19, 2013 Share Posted December 19, 2013 The first problem is this line...if p1p{4}=4 && p1dc>5 && p1dc<15 && p1p{5} then player1color:You've used the {} notation correctly elsewhere, so I'll skip the lecture and just post the fixed line...if p1p{4} && p1dc>5 && p1dc<15 && p1p{5} then player1color: Same thing with this line... if collision(playfield,player1) then !p1p{6} If you mean to flip the bit, you need to use an assignment... if collision(playfield,player1) then p1p{6}=!p1p{6} Lastly, the player1color: list under the "ENEMY GUARDING" section has some code accidentally included in the color list. After fixing those up the code compiles and runs for me. 1 Quote Link to comment Share on other sites More sharing options...
pacgreg Posted December 19, 2013 Author Share Posted December 19, 2013 Thanks so much RevEng, I would have glided over that again and again if you hadn't found it. Quote Link to comment Share on other sites More sharing options...
RevEng Posted December 19, 2013 Share Posted December 19, 2013 You're welcome! 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.