![]() ![]() If the Menu's Size field is left as Automatic, the Menu will adjust it's size to fit the larger Label. ![]() Select the Label, and set its Label text to "Enter your name:". From the list of Element types, create a new Label, Input, and Button in turn. ![]() This Menu will consist of three Elements: a Label that prompts the player to enter their name, an Input box that they type in, and a Button to close the Menu afterwards. This tutorial won't deal with styling the Menu, but to make things readable, set the Background texture to grey.png. We'll make this Menu appear at a specific point in the game, so leave it's Appear type as Manual. In the Menu Manager, create a new Menu and give it the name "PlayerName". Change its Type to String, and rename it to "Player name", and enter in "Player" as the initial value. In the Variables Manager, click Create new Global variable. We'll store this name as a String variable, so we'll first need to define it. In this tutorial, we'll let the player enter their name - so that we can have NPCs call them by it as part of their dialogue. With the Input element type, you can prompt the player to enter text or numbers - allowing for things like password puzzles. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |