Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | ZeralldGames |
Hey! I would like to make it so that the user has his own “account” in my game. The scheme is as follows:
- The user enters his nickname in the TextEdit field
- (optional) clicks a button to save the nickname
- The nickname is saved.
Everything is fine, but how, when the button is pressed, to save, for example, the user’s nickname to a text file so that the nickname is displayed the next time the scene is launched? I know, quite difficult, but I will be very grateful to you if you can give me an answer in the form of a code!