Accepting input into a string variable?

0 favourites
  • 6 posts
From the Asset Store
Easily store, modify, read and manipulate colors with Color Variables!
  • Hi guys,

    Is there a way of requesting input from the user? Say an inputbox where they put their name if they get a high score? Or do we just let them fill the text box in and store the data into a local storage key?

    Thanks!

  • Add from object/form control/text box rather than object/general/text

  • What other way would you like to have besides textbox?

    If it's keyboardinput you want that would seem the most logical.

    If it's the look of the textbox you don't like, it can be adjusted or you could use the input while having the textbox invisible to create a spritefont portraying the textbox input.

    I think there are also some other solutions on the forum, because coccoonjs didn't have textbox. Searching for coccoonjs and textbox should give some ideas.

  • Once again it looks like I didn't read the question !

    Sorry - I thought you were trying to use the text as an input rather than a text box <img src="smileys/smiley9.gif" border="0" align="middle" />

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks guys, when the user dies and they beat their highscore I wanted them to enter their name and have it go on the Top 10 Score layout. I guess I could create a new layout for the user to add their name. Or could I have an invisible text box and have it become visible upon the players death?

  • It doesn't have to be invisible, you could just create it on player death..

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)