Mar 15, 2024
So over the last few days, I have spent a good chunk of time after work trying to figure out how to get the character's name to carry over from the name entry screen to the game and consequently to the continue/load screen after saving. GB Studio is interesting in that just like low level programming for the game boy, it has a lot of limitations. Primarily using languages like Java / VB / Python in the past, handling text entry here is quite different. In a nutshell, selecting the letters on the screen is picking a location on a predefined gride. Based on the cursor location, I assign the ascii value (here is a handy dandy cheat sheet) to a variable. This variable when called to display on screen has a few behaviors. If you just call the variable itself, it will print the numeric value stored in the variable; however, if you call it in a dialog/menu box using the format "#xx#" where the xx is the reference number of the variable, it will print out the corresponding ascii value. So for instance, I have a variable named "$nameLetter1". That is the 17th variable I've used in the global variable list. So if I populate $nameLetter1 = 65 and then in a dialog box type #17#, it will display the letter A on the screen. It's convoluted as all get out and pretty limited, but it was pretty satisfying finally figuring out how to accomplish this task.
Files
Get Tower of Meowgic
Tower of Meowgic
Just playing with gb studio. this is not intended for actual playing. just sharing the url with friends.
Status | Prototype |
Author | PestoRavioli |
More posts
- New animation8 days ago
- And we're back!8 days ago
- Stepping away for a while...Jul 11, 2024
- June 26, 2024Jun 26, 2024
- June 19, 2024Jun 19, 2024
- May 30, 2024May 30, 2024
- May 28, 2024May 28, 2024
- May 23, 2024 - It's been awhileMay 23, 2024
- May 7, 2024 - NOT GAME RELATEDMay 07, 2024
- April 24, 2024Apr 24, 2024
Leave a comment
Log in with itch.io to leave a comment.