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


#1

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.


#2

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


#3

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


#4

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: );

#5

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


#6

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: ");


#7

Oops! My bad. Forgot to close that string.