Does anyone know how to do text input in a game lab project without using a prompt? (kinda like a chat, but this question isn't for a chat)
Text Input in Game Lab
DragonFireGamesLvl 11
- Edited
- Best Answerset by TNitro7669
TNitro7669 Use FGUI! Doing text input properly is a very difficult process, FGUI does it for you!L
Library ID: rOXQsmd4_OVOOWKzsdPAQf2FqnDqmjPWTu570Zp4DGA
Here is the code for a simple text input!
var input = createElement(10,10,380,20);
input.addComponent("input","Text");
function draw() {
FGUI.draw();
}
Check it out at https://gamelab.freeflarum.com/d/1548-gui-module/18
You can get the value of the input using input.value
Also, ask questions here if you need help doing what you want with it.
(shameless self-promotion)
DragonFireGames added the Game Lab tag .
ackvonhuelioLvl 41
TNitro7669
if ya dont wanna be reliant on fgui u can use the key
keyword (in ka at least)