Primordial Ooze Posted October 29, 2008 Share Posted October 29, 2008 (edited) The life bar is supposed to change color from green(no missed), to yellow(1 miss) to red(2 misses) and then completely disappear(lost 3 misses). However the first time it starts black, then yellow, then red and disappears and then it turns orange, yellow then green. The code that sets the color of the lives counter is pasted below and i have attached the full source to my game as a .bas file. rem if the player hasn't missed then set the live bar color to green if lives > 64 && lives < 97 then lifecolor = 192 rem if the player missed once then set the live bar color to yellow if lives > 32 && lives < 65 then lifecolor = 30 rem if the player missed twice times then set the life bar color to red if lives > 0 && lives < 33 then lifecolor = 78 Can anyone tell me what i'm doing wrong? Sincerely, Xlanky Edited October 29, 2008 by Open Source Pong Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted October 30, 2008 Share Posted October 30, 2008 When I run your program and insert the following into your main loop, the numbers are all wrong: score=0 : temp5=lives if temp5>0 then for temp6=1 to temp5 : score=score+1 : next I don't know if this is a bug or something is wrong somewhere in your program. If nothing is wrong with your program and it's a bug, you'll need to adjust your numbers to match what shows up in the score. Quote Link to comment Share on other sites More sharing options...
Primordial Ooze Posted October 30, 2008 Author Share Posted October 30, 2008 I believe it is a bug. How can i report it? Sincerely, Open Source Pong Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted October 30, 2008 Share Posted October 30, 2008 You could always try the Bug Report Thread: http://www.atariage.com/forums/index.php?showtopic=73160 Quote Link to comment Share on other sites More sharing options...
Primordial Ooze Posted October 30, 2008 Author Share Posted October 30, 2008 You could always try the Bug Report Thread: http://www.atariage.com/forums/index.php?showtopic=73160 Done Quote Link to comment Share on other sites More sharing options...
CurtisP Posted November 2, 2008 Share Posted November 2, 2008 I'm pretty sure the bug is in your code, not in bAtariBasic itself, but I haven't found it yet. Maybe someone else can. Quote Link to comment Share on other sites More sharing options...
+batari Posted November 2, 2008 Share Posted November 2, 2008 I'm pretty sure the bug is in your code, not in bAtariBasic itself, but I haven't found it yet. Maybe someone else can.You are correct, the problem was not with bB. I replied to the bug report thread, where this question was also asked. 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.