So, we’re saying that the message variable should store what the user is typing. Keyboard_string is a built-in variable that stores whatever text the user types. This initializes an empty string (text) variable called message which will store the text the user types. Now let’s create an object for it – obj_textbox, and add some code: Create event: message = "" …name it spr_textbox and make its origin at 16*16, because that’s where the text will start from – 16 pixels in the box (horizontally), at the middle (vertically). Basic Text Boxįor this text box I’m going to use this 256*32 sprite… (you may create your own or use this one) Anyway, who likes this filler crap in articles? Let’s just get straight to the topic. Text input boxes are very useful in games for example, they let the player input their name so that they can have an immersive experience where they are actually called by their name. In this tutorial we’re going to create a quick text input box.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |