*The game wants to use your username/name for a more personalized experience*
1. Prompt the user to type their username
2. Allow the user to type their name
3. When they press enter, store their inputted name as a variable
4. Print a message including their username
In my head it looks something like this (where "Bertram" has been inputted by the user):
What is your name? Bertram
Hello Bertram, welcome to the game!
I have steps 1-2 down (using the full code snippet at https://love2d.org/wiki/love.textinput), but I can't find a way to store the user's text input/name as a variable to use. It seems really easy to do in theory but I just can't seem to figure it out. If this is a more complex DIY problem, are there any libraries that could help me achieve this? I've been researching this too with no luck thus far
![Confused :?](./images/smilies/ms-confused.png)
Thank you so much in advance
![Smile :)](./images/smilies/ms-smile.png)