? Basic Textboxes. ● SmileBASIC Source

Sign In

Register
*Usernames are case-sensitive
Forgot my password

Basic Textboxes.

In this tutorial I will teach you how to make a simple text box. A simple text box: This is just simply a box with text in it that disappears when the A button is pressed: PRINT "_____________________ PRINT "IHELLO WORLD!!!!!!II PRINT "--------------------- That prints the text box(Yes I know the text box looks terrible but in SmileBASIC there are text characters that can be used to make proper Text Boxes). Now to make the text box disappear when A is pressed(Put this under the textbox: WHILE 1 IF BUTTON(2) AND #A THEN BREAK WEND CLS And that's it, simple right.
Author
JINC_DEV
Updated
Rating
0 votes
Categories
Keywords
6 Comment(s) SwanBot SwanBot Halloween 2017 Contest Runner Up I placed 2nd in the SmileBASIC Source Halloween 2017 Contest! Programming Contest Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength First Year My account is over 1 year old Website good for biginers but i believe if you wanted to use this a lot you would want to make a DEF such as DEF BTN WHILE BUTTON()!=#A:WEND:CLS END now when you put BTN anywhere in your code it will stop you until you press A otherwise just do WHILE BUTTON()!=#A:WEND:CLS Theres really no better way to do a text box... though if you don't want that sometimes annoying "one character at a time" thingy you can always use GPUTCHR for much better placing stuff KingCo KingCo Avatar Taboo I didn't change my avatar for 180 days Website RNG Hidden Easter Eggs Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Not to hate on this, as it may help some beginners, but there is already a few lines of code I found through the Dungeon Tanken game (in the samples folder) that generates a box made out of text characters. Your suggestion may take up less space in the code though, but I would need to check. ToadIsTheBest ToadIsTheBest Avatar Taboo I didn't change my avatar for 180 days Website Video Games I like to play video games! Hobbies Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength the one i have that uses DEFs is still better KingCo KingCo Avatar Taboo I didn't change my avatar for 180 days Website RNG Hidden Easter Eggs Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Would you care to explain it instead of just saying it uses DEFs? ToadIsTheBest ToadIsTheBest Avatar Taboo I didn't change my avatar for 180 days Website Video Games I like to play video games! Hobbies Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength it's a bit long plus i can't remember the code i'm playing a game that doesn't have saving ATM so i'll tell you later ToadIsTheBest ToadIsTheBest Avatar Taboo I didn't change my avatar for 180 days Website Video Games I like to play video games! Hobbies Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength i have a better one that uses DEFs