Hi, I need something very simple this time. I've been trying to do this, but i gave up...
I just need a script that, when called, displays a message box centered in the screen with a text (the box limited to the content of the text in width and height), and when the player presses a specific key, it closes.
In theory this should be super simple but i can't manage to make it... please help
Edit to clarify:
I need the window to display the number of a variable, which can be changing, so i also need that the text refreshes itself, instead of waiting for the player to press space to clear the text box. If the player moves, of if they press X, the window is closed.
There is some other things behind, but i think I can manage to experiment with that after i have a window.
I just need a script that, when called, displays a message box centered in the screen with a text (the box limited to the content of the text in width and height), and when the player presses a specific key, it closes.
In theory this should be super simple but i can't manage to make it... please help
Edit to clarify:
I need the window to display the number of a variable, which can be changing, so i also need that the text refreshes itself, instead of waiting for the player to press space to clear the text box. If the player moves, of if they press X, the window is closed.
There is some other things behind, but i think I can manage to experiment with that after i have a window.