トピック
PChicken NerdChicken

Random Tips!

1) Do SPRITE=SPSET(<DEF>) to get a management number assigned to SPRITE and a sprite created with the character definition given. 2) Do VAR("<SLOT>:<VARNAME>") to return a variable from another slot. 3) REPEAT UNTIL loops are the opposite of WHILE WEND loops. Use them both to help your code make sense. 4) Don't ask for Minecraft SB or FNAF SB at all. It's cancer.
12そうだね
プレイ済み
返信[1]
親投稿
PChicken NerdChicken
5) Type in "MML" on an empty line and press the help button. 6) Download Rwiiug's FREEBGM (TXCX43JJ) which has over 100 different songs to use in your games. 7) If there is a GRP you want to use in lots of projects, upload it to your cloud database and download it into all the projects you need it in.
2そうだね
プレイ済み
返信[2]
親投稿
8) Put OPTION STRICT in the beginning of your program to catch bugs faster 9) Typing SYSBEEP=0 in the beginning of your program will disable all annoying dialog sounds. 10) IF N+1 is the same as IF N!=-1 11) N<<1 is the same as N*2 12) N>>1 is the same as FLOOR(N/2) for positive numbers (negative number will round towards negative infinity instead of zero) 13) Use IF A||B instead of IF A OR B
2そうだね
プレイ済み
返信[3]
親投稿
fireflames fireflames82
14) Hold the L or R buttons when SmileBASIC is booting up to go directly into Create and Edit Programs mode.
1そうだね
プレイ済み
返信[4]
親投稿
raimondz raimondzz
15)Use goto only if you want to simulate switch case. For everything else use other control structure ( while...wend, repeat...until, for...next, etc) 16)Don't use gosub. Use a function created with def instead. 17)If you won't use an array anymore, then clean the memory used by it. You can do this with pop, unshift or by assigning an empty array to that variable.(GC will do the magic)
2そうだね
プレイ済み
返信[5]
親投稿
Hanzo rzsense
18) When N is integer, NOT N is equal to -1-N 19) A=A+1(A=A-1) is a little bit faster than INC A(DEC A). 20) Normally the result of comparison operation (e.g. A>B) is boolean (1:TRUE/0:FALSE). However, if we compare string variable and numerical variable like A$<B, the result will be 3. We can discriminate variable type with this phenomenon.
2そうだね
未プレイ