Krunkcleanup Posted January 24 Share Posted January 24 I created this subroutine for an RPG program I'm working on where I needed to display the score as one of my variables. It might be useful to others so I decided to post it. Not sure if there's a more efficient way to do it, but it works! Instructions: Use the fire button to increase the score by 1 Toggle the Black and White switch to use either the right 3 digits of the score or the left 3. I also added code to remove the zeros preceding the number, you can just remove it if you don't need it. variable2score.bas Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted January 24 Share Posted January 24 Have you looked at this: https://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html#testvariables Quote Link to comment Share on other sites More sharing options...
Krunkcleanup Posted January 25 Author Share Posted January 25 4 hours ago, Random Terrain said: Have you looked at this: https://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html#testvariables Oh that looks great! I can probably blank out the preceding zeros the same way I did too I bet. 1 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.