Session saving

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: 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:

  1. The user enters his nickname in the TextEdit field
  2. (optional) clicks a button to save the nickname
  3. 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!