Then, you can use READ VARIABLE to assign the first piece of data on the stack, 12, to the variable given to the READ command.
Imagine that the 12 was removed from the list of data.
Next up is "LOL". You will need a string variable to assign this data to. Let's call it STRINGVAR$.
READ STRINGVAR$ will assign such data to the STRINGVAR$ string var.
Note: Not using RESTORE will make the READ command
DATA stores information in a stack that you can load into variables or arrays with READ.
This "stack" is basically a list of numbers or strings, data as we will call it.
@SPECIALDATA 'Optional
DATA 12,"LOL",15,16
This is a label, and a data stack assigned to a DATA command.
Optional: Use RESTORE @SPECIALDATA to tell SmileBASIC that you want to READ starting from that label.
Do you know how to display text on the screen yet?
If so, do you know how to display text on the screen on the graphics page?
And, finally, do you know how to use WHILE/WEND FOR/NEXT REPEAT/UNTIL loops and IF/ELSE/ENDIF conditionals?
If you can do ALL of those, then you can get up to sprites.
side-scrollers are probably too complicated for you right now.
Use the manual that you can access from the home menu (tap on smilebasic app, then tap on Manual.) to learn at least the basics of what's going on.
extra work for a beginner, but yes, it does help you find some bugs faster.
And yes, please do not ask for minecraft, fnaf, or undertale. Do not ask "key please" in posts that are obviously jokes. Please, stay professional.
key please
forces the interpreter to run the code starting from the label no matter what.
ACLS doesn't just clear text, it also clears sprite/bg and graphical data, which is why people love it so much. You should put it at the beginning of all your programs, as previously mentioned by SomeThing. It makes sure you don't have bits of data left over from last program.
OPTION STRICT forces you to do lots of
You're not using the right loops. The labels are not meant to be used for that, and even though they are in the examples, those are just bad habits the programmers picked up a long time ago. Use REPEAT<Code>UNTIL<Condition> and WHILE<Cond.><Code>WEND instead.
Also, empty lines do not send a label code back to its source. GOSUB lets the label code return using RETURN. GOTO, which you mentioned,