Welcome to my first (and right now only) SmileBASIC Tutorial. here we have the BASICs (lol pun) of SmileBASIC<< Previous tutorial (this is the first one!) 1 out of 4 planned (1 right now) )Next Tutorial>> (coming after this one's finished)
Randomous' tutorialVG_Lover's MML Tutorial
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:
Things cleared with GCLSSPDEFinition numbers
However, it does NOT clear variables and BGM-Related thingsLOCATE X,Y,Z (Z is optional) - use to locate text
COLOR Color - The included colors are
#TYELLOWRGB(R,G,B) R, G and B and be numbers or a number value (see equals)==, =, !=, >, >=, < & <= - = is a version of LET from traditonal 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 (the third one) )
FADE Color - Use THESE colors for this:#BLACK
#YELLOWGOTO and GOSUB @labelname - use in combination with @label. GOTO - goes to the label. RETURN doesn't work. GOSUB - Same as GOTO, but RETURN works
@label - the label can be anything that doesn't include spaces. explained in GOTO and GOSUB.
RETURN - Returns to the line after GOSUB was used after using GOSUB. Not using GOSUB and this being used leads to a nasty error.
to be finished...