How to get text input from user and store in a variable


Hi i’m Manoj.

I’m not getting how to use text input. Can you help me getting the text from user and show in a part of the screen. Please give me any tutorials or examples for text input to store data temporarily.


It’s not officially supported yet. Another forum user has kindly released their version of text input fields Released: Aphrodite Starter Kit UI Text Input


Another approach might be using some html input-text box and store the input in a variable and pass it to anywhere you want.


I know you are probably trying to get input through a game element, but here is a way you could prompt the user for input using a JS function.

var input = promt("Enter input: );


Sorry not clear. Can you give me any example please.


prompt will pop up a small window with a small input text where the user will write. evandarcy just made a couple of type errors.

var input = prompt("Enter input: ");


Oops! My bad. Forgot to close that string.