? SmileBASIC Tutorial #1 - BASICs ● SmileBASIC Source

Sign In

Register
*Usernames are case-sensitive
Forgot my password
Another contest? You asked for it!

SmileBASIC Tutorial #1 - BASICs

Welcome to my SmileBASIC Tutorial. here we have the BASICs (lol pun) of SmileBASIC So if you've just gotten SmileBASIC you might be wondering "How do i create a program?" Here is a step-by-step guide:Step 1:Create a project by using the "Manage Projects/Files button" and tapping "Add Project Folder" (Optional) Step 2:Go back to the main menu and choose "Create Programs with SmileBASIC" Step 3:Tap the "Edit" button with a 0 on it Now that you've gone to edit let's add some BASIC commands PRINT "Text String" - use to print a text string. change the text string if you want. PRINT NumValue - Print a number value PRINT StringValue$ - Print a stored string ACLS - You should always put this at the start of your program it clears the following things: Sprites BG images Things cleared with GCLS SPDEFinition numbers Fonts However, it does NOT clear variables and BGM-Related things LOCATE X,Y,Z (Z is optional) - use to locate text COLOR Color - The included colors are #TBLACK #TBLUE #TCYAN #TGRAY #TGREEN #TLIME #TMAGENTA #TMAROON #TNAVY #TOLIVE #TPURPLE #TRED #TTEAL #TWHITE #TYELLOW RGB(R,G,B) R, G and B and be numbers or a number value (see equals) ==, =, !=, >, >=, < & <= - = is a version of LET from regular BASIC, the rest are for IF, which will be explained later on == is for testing if a number value or string is a certain value or string. >= is for the same as equals except it's equal to or greater than, > is just greater than and nothing else. <= is equal to or less than. < is less than. != is NOT equal to GCLS - clear the graphic screen CLS - clear the console screen END - Stops the game prematurely (before reaching the last line) or ENDs a DEF (DEFs will be in the advanced tutorial) to be finished...
Author
DaSonicMario
Updated
Rating
11 votes
Categories
Keywords
  • BASIC
  • SmileBASIC
  • Tutorial
18 Comment(s) DaSonicMario DaSonicMario Forum Contributor Hidden Achievements Video Games I like to play video games! Hobbies Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength finally the first up vote is here! I KNEW SOMEONE WOULD LIKE MY TUTORIAL! PetNet PetNet There can be a variety guys, people learn differently so its better for there to be options, at least in my opinion. Actually, I'll shut up. Randomous and Lumage can decide. kitesinpowerlines kitesinpowerlines Avatar Block I didn't change my avatar for 30 days. Website Avatar Embargo I didn't change my avatar for 90 days Website Avatar Taboo I didn't change my avatar for 180 days Website I think the (currently) -7 votes says otherwise PetNet PetNet Well I just think its bad to pounce on a tutorial for this, when some people may genuinely like it. Some people learn differently. But like I said, Lumage and Randomous should make determinations on what's good, since their opinions are what matter. AnswerXOX AnswerXOX First Year My account is over 1 year old Website Great Page Hidden Achievements Touhou Project Is Awesome! I love Touhou Project! Express Yourself Please don't copy me with my really bad unfinished tutorial DaSonicMario DaSonicMario Forum Contributor Hidden Achievements Video Games I like to play video games! Hobbies Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength i'm trying to actually complete the tutorial, it's just i'm adding a few (usally 1) sections/commands at a time kitesinpowerlines kitesinpowerlines Avatar Block I didn't change my avatar for 30 days. Website Avatar Embargo I didn't change my avatar for 90 days Website Avatar Taboo I didn't change my avatar for 180 days Website There's already a (more useful) tutorial on this: How To Program #2 DaSonicMario DaSonicMario Forum Contributor Hidden Achievements Video Games I like to play video games! Hobbies Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength i said it was unfinished tho kitesinpowerlines kitesinpowerlines Avatar Block I didn't change my avatar for 30 days. Website Avatar Embargo I didn't change my avatar for 90 days Website Avatar Taboo I didn't change my avatar for 180 days Website I think one tutorial on how to print text is enough... but also randomouscrap has 8 tutorials for beginners that are already incredibly useful. I would recommend creating a tutorial for something that there isn't already a resource for. DaSonicMario DaSonicMario Forum Contributor Hidden Achievements Video Games I like to play video games! Hobbies Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength i guess i could make a tutorial on how to use my ESRB ratings but a tutorial is included in the code of the README so it'd be kinda pointless kitesinpowerlines kitesinpowerlines Avatar Block I didn't change my avatar for 30 days. Website Avatar Embargo I didn't change my avatar for 90 days Website Avatar Taboo I didn't change my avatar for 180 days Website Instead of a resource for that, you could create a thread in the "Talk about programs" forum and describe how to use it there. If you would like to contribute more to resources, there are still some things that can be done in Smilebasic that does not have formal resource page for them (not that I saw, anyways). Examples would be saving and loading in-game data, using spanim, etc. These examples aren't particularly difficult to do, but many users do not know how to do them. DaSonicMario DaSonicMario Forum Contributor Hidden Achievements Video Games I like to play video games! Hobbies Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength did you have to post that while i was in the middle of submitting my ESRB ratings? kitesinpowerlines kitesinpowerlines Avatar Block I didn't change my avatar for 30 days. Website Avatar Embargo I didn't change my avatar for 90 days Website Avatar Taboo I didn't change my avatar for 180 days Website *shrugs* DaSonicMario DaSonicMario Forum Contributor Hidden Achievements Video Games I like to play video games! Hobbies Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength also i don't know how to make saves kitesinpowerlines kitesinpowerlines Avatar Block I didn't change my avatar for 30 days. Website Avatar Embargo I didn't change my avatar for 90 days Website Avatar Taboo I didn't change my avatar for 180 days Website saveing the game Saving and Loading String Arrays The forums are a good place to go find questions about programming that could be made into a resource. DaSonicMario DaSonicMario Forum Contributor Hidden Achievements Video Games I like to play video games! Hobbies Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength *Saving the game you said saveing the game kitesinpowerlines kitesinpowerlines Avatar Block I didn't change my avatar for 30 days. Website Avatar Embargo I didn't change my avatar for 90 days Website Avatar Taboo I didn't change my avatar for 180 days Website I know it was wrong, it was the title of the thread so I left it. DaSonicMario DaSonicMario Forum Contributor Hidden Achievements Video Games I like to play video games! Hobbies Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength oh. ok