Discussions

SmileBASIC Community

PChickenNerdChicken

11/22/2016 4:33 PM ·Spoilers

Open Closed

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.

Advertisement

Comment

This post has no comments.

  • 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.

    Yeahs2
    Played
  • 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

    Yeahs2
    Played
  • 14) Hold the L or R buttons when SmileBASIC is booting up to go directly into Create and Edit Programs mode.

    Yeahs1
    Played
  • 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)

    Yeahs2
    Played
  • 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.

    Yeahs2

Add a Comment

You must sign in to post a comment.

Sign in using a Nintendo Network ID to connect to users around the world by writing posts and comments and by giving Yeahs to other people's posts. You can create a Nintendo Network ID using your Wii U console or your system in the Nintendo 3DS family.

Use of Miiverse Details about Miiverse

Report Violation to Miiverse Administrators

You are about to report a post with content which violates the Miiverse Code of Conduct. This report will be sent to Nintendo's Miiverse administrators and not to the creator of the post.

Violation Type:

Post ID: 3DB-NBL7-EJ9-9E2M-GNR-XDAX

Report Violation to Miiverse Administrators

You cannot report posts made automatically by a software title.

Edit Post

Select an action: