トピック
Autz sonic-HD8765

Programming - Tips and Tricks #01

Since the Europe community is relative new, i bet most users have doubts or too many questions about programming on SmileBASIC, so i made this topic. Here you can make a question for people to respond, or just share a neat trick that saves valuable time. If you have a doubt, please don't flood the forum with too many topics.
7そうだね
未プレイ
返信[1]
親投稿
Autz sonic-HD8765
I'll start: - A very oversighted feature for sprites is the #SPADD attribute. Is useful if you want to make shiny sprites like fire. - You can manipulate the graphics pages (including sprites and BG pages) by using code alone. Set GPAGE to the page you want to manipulate. - You can check the manual offline (part of it). Just locate the cursor over a command and touch the "?" button.
3そうだね
未プレイ
返信[2]
親投稿
Here's my advice: - Use the L and R buttons to quickly scroll through code while editing. - Commentate and organize your code as you type. - Try to avoid the "GOTO" and "GOSSUB" commands when possible. Instead, you can simply just define a function that does the same thing.
3そうだね
未プレイ
返信[3]
親投稿
Nicole moesaku
- It can be tedious to type PRINT over and over, but there's a faster way. ? is short for PRINT. Also, closing quotes are optional at the end of a line. So, these are the same: PRINT "Hello!" ?"Hello! - Any command of the form NAME ... OUT A, where only one value is output, can also be used as NAME(...), and vice versa.
4そうだね
未プレイ
返信[4]
親投稿
doum95 95doum
Use Direct Mode to test commands. You will see the results, step by step. In the Help window, you can click the COPY button, then PASTE the example in a slot or in Direct Mode.
0そうだね
プレイ済み