How do I Allow The Player To Name Their Character?

Get help using Construct 2

Post » Fri Mar 04, 2016 11:39 am

When the player selects new game and has chosen their character, I want them to be able to name that character whatever they want and for the name to be displayed above the characters head in-game.
Posts: 2
Reputation: 154

Post » Fri Mar 04, 2016 12:41 pm

You can get a Textbox object in like "character creation" page or whatever where they enter their chosen name. Then you could also have a normal Text object pinned (Pin behaviour) or using something else to position the Text object always above the player (ergo use the position of the player to position the Text object, like Text.Y = Player.Y -100 .Then you should set Text to whatever was entered in Textbox and then destroy Textbox, or put invisible etc.

Maybe this is even better: just make a global variable that's being set by whatever the user enters in the Textbox object, then destroy the Textbox on like "start game" or "enter name" button or something, then have the Text object (above the player) be set to the global variable. That way you can also use the global variable to be referenced on other places.

Hope this helps :).
Posts: 50
Reputation: 517

Post » Fri Mar 04, 2016 11:07 pm

Why couldnt you do something like when the game starts they name the character to "WolfMan"
In the Character Instances have an instance for name..

When character is created set name to your textbox....
Posts: 58
Reputation: 805

Return to How do I....?

Who is online

Users browsing this forum: PitfallJerry and 5 guests