? DocWaluigean's Extremely Annoying Millions of Questions (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password

DocWaluigean's Extremely Annoying Millions of Questions

  • #1 ✎ 6 DocWaluigean Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Drawing I like to draw! Hobbies Video Games I like to play video games! Hobbies Hello, I'm new to the communities involving SmileBASICSource. I don't want to tell anyone if I have autism or not, but lets just say I have complex in understanding programming situations. I asked a lot of questions to try to understand certain codes, but I don't want to be bothersome about things..even if it's too repetitive and simple. So I made this thread so I can express or speak whatever I want without feeling very bothersome to anyone. Possibly all my questions will be here. And yes, I'm from NESDev, and I would come back to it later when I gain enough confidences in myself. The first question I have now is what do I make now? A "Hello World" program with nothing but PRINT and things? Posted Edited by DocWaluigean
  • #2 ✎ 6 DocWaluigean Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Drawing I like to draw! Hobbies Video Games I like to play video games! Hobbies I made my first program! But I can't use keyboard with SmileBASIC 4. Posted
  • #3 ✎ 6 DocWaluigean Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Drawing I like to draw! Hobbies Video Games I like to play video games! Hobbies Posted
  • #4 ✎ 6 DocWaluigean Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Drawing I like to draw! Hobbies Video Games I like to play video games! Hobbies Before I go to sleep, one important question: What is the list of most common code used like PRINT? Posted Edited by DocWaluigean
  • #5 ✎ 1076 Yolkai Head Admin randomous' tutorial series: http://smilebasicsource.com/page?pid=402 niconii's language changes guide: http://smilebasicsource.com/page?pid=1362 enclosed instruction booklet: https://sup4.smilebasic.com/doku.php?id=reference:top Posted
  • #6 ✎ 6 DocWaluigean Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Drawing I like to draw! Hobbies Video Games I like to play video games! Hobbies Thank you very much, Yolkai! So I'm back! I read the official Japanese tutorials about it! Here's what I read about: PRINT VIBRATE BEEP and other important features: SPSET SPOFS SPROT HERE'S WHAT I BELIEVE IN THIS THEORIES AND SITUATIONS: SPSET is a SPrite SET, meaning "setting up the sprite, like give the sprite permission to appear in your program or games" SPSET 10, 0 The first digit of where 10 is are the identity of the sprite, and the second digit where 0 is is the location of the sprite. Zero is usually where strawberry is. So, judging by that, if you want to use it or place it in somewhere on that specific sprite, you always have to put 10 on the first digit on SPOFS SPOFS might mean SPrite OFfSet to mean the amount or distance by which something is out of line. Most likely wrong words. SPOFS 1, 2, 3 The digit of 1 is an identification of what SPR/SPRITE is judging from SPSET. The digit of 2 is the location of the X-axis (Left and right) where higher number means the sprite will go right. The digit of 3 is the location of the Y-axis (Up and down) where higher number means the sprite will go down. SPROT 1, 359 Obviously SPrite ROTate. The digit from 1 is the identity from SPSET 1. The digits from 359 is the rotation angle. 0 and 360 is the same thing. The sprite turns around toward 359 degrees. Then there's VSYNC and LOOP with IF THEN and THEN BREAK and ENDLOOP Like.... LOOP JOE = JOE + 1 VSYNC IF JOE == 100 THEN BREAK ENDLOOP It will keep adding JOE the Variable into one every 1/60th second, and if it reaches 100, it will "break" and continue the code after ENDLOOP. VSYNC is a special kind of "WAIT" code where instead of infinite, it's frame by frame, or 1/60 second by 1/60 second. If you don't have VSYNC in anyway, IT WILL MOVE INCREDIBLY FAST WITHOUT ANY STYLE OF VSYNC!!! There's the BUTTON function, but I didn't use it at all. ---- So the question is.. am I right 100% on understanding? Or there's something I am missing right now? Posted
  • #7 ✎ 6 DocWaluigean Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Drawing I like to draw! Hobbies Video Games I like to play video games! Hobbies I'm reading the Randomous's tutorial right now while figuring out what to have fun in program: On part 3, What is the point in using DIM and VAR? In GameMaker stuff, there's 3 types of variables: Global, Normal {I forgot the name}, and Local. Global is that the variable can be used by ANYTHING in the program, while Local is only used once in one code. I remember that VAR is used to use the code ONCE then get deleted if the code is finished, which is to save memory so much. So in this situation, what's the point in DIM and VAR and what's the differences? I know I have to re-read it to get it, but I always get confused in anything. Posted
  • #8 ✎ 2 Na_trium Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Video Games I like to play video games! Hobbies DIM and VAR declare variables you will use. These do the same thing, so you can use whichever you like. In fact, you can use variables without using DIM or VAR. COOKIES%=5 PRINT "I have ";COOKIES%;" cookies!" When you put OPTION STRICT at the beginning of your code, you must use DIM or VAR to use variables. OPTION STRICT VAR COOKIES%=5 'I will use COOKIES% PRINT "I have ";COOKIE%;" cookies!" 'But COOKIE% isn't declared! In this case, if you use variables without DIM or VAR, it stops with Undefined variable error. Therefore, it prevents you from mistaking variable names. If you use DIM or VAR in DEF code, it will be a Local variable which can be used only in the DEF. The other variables are Global variables. (I don't know what Normal variable is. Sorry.) DEF ABC VAR X%=15 END X%=150 'This X% is different from the X% in ABC In addition, you have to use DIM or VAR if you use array variables. (like DIM ARY%[5]) (Is this the right way to use spoiler? I'm also new to SmileBASIC Source.) Posted
  • #9 ✎ 40 S_DE_Solutions Avatar Taboo I didn't change my avatar for 180 days Website First Year My account is over 1 year old Website Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself In Smilebasic you have primary 2 types of Variables: global and Local. All variables will be global, if you don't write them in a function. Inside the Function you can use local Variables, and manipulate the global. Posted