+atari2600land Posted June 22, 2006 Share Posted June 22, 2006 So is there any way I can make one equal 3600? 'Cause if I try to put in if t=3600 then goto 270 it gives me the warning in the topic title. Quote Link to comment https://forums.atariage.com/topic/89549-variables-must-be/ Share on other sites More sharing options...
MausBoy Posted June 22, 2006 Share Posted June 22, 2006 (edited) You really, really need to read HELP.HTML, it comes with bB. I understand that you preferred to just jump into coding, but just reading through that file will answer virtually every question you've posted in this forum, and it's written in a way that's very easy to understand. Although variable values can contain 0-255, the numbers will wrap if 255 is exceeded. To use larger numbers, you have to use fractions. Open help.html and click on Fixed Point Variables, when you read through the kind of long-winded explanation of how they work, you'll see how to solve your problem. edit: Another way to do this if you aren't comfortable with fixed point variables yet is: s = s + 1 if s = 200 then t = t + 1 : s = 0 if t = 18 then goto 270 Edited June 22, 2006 by MausBoy Quote Link to comment https://forums.atariage.com/topic/89549-variables-must-be/#findComment-1087943 Share on other sites More sharing options...
+atari2600land Posted June 22, 2006 Author Share Posted June 22, 2006 (edited) I read that section and it's all Greek to me. Maybe I'm a little stupid when it comes to understanding 2600 programming, but it's hard to comprehend all this. It's a miracle that I've done what I already did. BTW, thanks for the alternate code. Edited June 22, 2006 by atari2600land Quote Link to comment https://forums.atariage.com/topic/89549-variables-must-be/#findComment-1087954 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.