Jump to content

Score is not what I expect


Recommended Posts

Hi all, I am an absolute beginner in batari basic, and I really only have a very modest goal so far: Making the program sum two numbers and show them in the score. But unfortunately, this does not seem to work as expected. The program compiles, but the score is always shown as 47, no matter how I choose _Num1 and _Num2. Any ideas why? Thanks already for any hints you can give me!


 set smartbranching on
 dim _Num1 = a
 dim _Num2 = b
 dim _Flip = c
 dim _Sum = d

 _Num1 = 5
 _Num2 = 12
 _Flip = 0
 _Sum = 0
 scorecolor = $BE
 COLUBK = $00
 score = 0

 if _Flip = 0 then _Sum = _Num1 + _Num2
 score = _Sum
 _Flip = 1


 goto mainloop


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...