Jump to content

variables must be <$100!


Recommended Posts

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.



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 by MausBoy
Link to comment
Share on other sites

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 by atari2600land
Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...