Program1031.comTM
Game Programming Help for Beginners!
Home Need Help? Start here!
Questions and Answers
Get Exclusive Stuff!
Email Newsletter

Question:
How do variables work in smileBASIC?


Answer:

Variables are very important in programming because they hold information you will need through your program.

To declare a number variable, you can use the following code: (sometimes numerical variables are called "real")

MYVARIABLE=9

The above code creates a variable called MYVARIABLE and places the numerical value 9 in it!

To declare a string variable, you can use the following code: (string variables are where you hold words)

MYGAME$="GAME1"

The above code creates a variable called MYGAME and places the string value "GAME1" in it. Remember, you need to $ sign after your variable name for it to be a string variable.

Page updated: September 5th, 2015 @ 10:56 AM Eastern Time

Game Making Tutorials
Find tutorials about your favorite game creation software! Use the navigation below!

Game Maker: Studio
Help, References, and Tutorials
RPG Maker Fes
Help, References, and Tutorials
smileBASIC
Help, References, and Tutorials

Download Books
Search Downloadable Books from Program1031.com

Home Questions and Answers Email Newsletter
Watch our YouTube channel Read our Twitter feed
Content and Design © 2012-2023 Program1031.com. All Rights Reserved. | Privacy Policy | Terms of Service
All Copyrights and Trademarks of mentioned products are copyrights and trademarks of their respective owners.

As an Amazon Associate and ChristianBook.com Affiliate, Breakthrough Gaming LLC earns a commission on qualifying purchases from Amazon.com and ChristianBook.com through our website. Thank you for your purchases!

Our other websites: