Saving Input Text & Wait till Ok is pressed (SOLVED)

crazymooseappscrazymooseapps Member, PRO Posts: 30
edited September 2018 in Working with GS (PC)

Ok for the life of me I cant get this

I have an input box where the player enters a name. I want to save that name to a text variable named Name. Then use the variable in other scenes to display the name, and I can not seem to make this happen. Help?!?

Comments

  • crazymooseappscrazymooseapps Member, PRO Posts: 30

    Ok I got that but is there a way to make all command wait till user hits OK on text input? The problem was the scene was changing before the input was done.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Change Attribute game.lastInput to game.Input

    Keyboard Input [game.Input]

    If game.Input is not game.lastInput
         Change Scene

  • crazymooseappscrazymooseapps Member, PRO Posts: 30

    TY! Worked perfectly!

Sign In or Register to comment.