How do I copy this onto my gbs project?
Text Input Template for GB Studio v2.0
As of writing this, GB Studio has a method to read inputs from variables and output the the matching text, but no software keyboard. This is an example template for a way to implement one! I tried to keep the coding simple in this one to help with understandability, so there are ways things can be made more efficient (such as using Flags for True/False instead of a dedicated Variable for each one). You'll also find Comments (the green text blocks) sprinkled throughout the code. There are many ways to improve and style this to make it your own, including expanding it to 8 character entry (or more with some clever coding!), changing the character set to add new symbols or even different languages, and so on! This is only a launching-off point.
Further details are in the enclosed Readme. Feel free to make any changes to fit your needs, and use this in whatever game or project you're making! Crediting me ( Setsune Wave, setsune.itch.io ) is very appreciated but not required.
Arrow Keys: Move
Z: Interact / Select
X: Cancel / Erase
Shift: Preview Input
Enter: Accept Input
Shift + Enter (Hold): Clear All
B: Interact / Select
A: Cancel / Erase
Back: Preview Input
Start: Accept Input
Back + Start: Clear All
Click download now to get access to the following files:
- Version 1.2: "Empty" Text Change, New Example Template!Sep 17, 2020
- Version 1.1: Minor Fix, Bonus VersionsSep 11, 2020
Log in with itch.io to leave a comment.
This is a really good work into GB Studio!
Thank you very much!
You amazing genius!
Noooooice, great stuff.
Really cool system, feels great to use. I can even put in my name in full :p
Nice! I might borrow this for the Pokemon demake so players can finally have a name.