How do I custom name

Get help using Construct 2

Post » Wed May 20, 2015 2:05 am

so for a game im working on im going to add a custom name, meaning it asks you your name and the characters call you that through out the game, how do i do that... could i for example say "hey 501389 how are you today??"
"you ok 501389" and then say change all instances of the word 501389 to the global variable "character.name?

if not please tell me how i could
B
4
Posts: 11
Reputation: 220

Post » Wed May 20, 2015 2:16 am

Yes, you could do it with a global variable. You could ask the player to enter what name they would like, than save it as a global. Than on your text write like this "Hey! "&Variable1&"How are you today?"
B
46
S
23
G
31
Posts: 693
Reputation: 20,637

Post » Wed May 20, 2015 2:47 am

Thanks!
B
4
Posts: 11
Reputation: 220

Post » Wed May 20, 2015 7:19 am

how would i setup the name creation screen? for pc and android support
B
4
Posts: 11
Reputation: 220

Post » Wed May 20, 2015 11:16 am

I never tried it, but I would think you can create a textbox, let the player enter what they want, than on the ok button, save it as the variable.
B
46
S
23
G
31
Posts: 693
Reputation: 20,637

Post » Fri May 22, 2015 6:20 am

how to enable typing in that one textbox for the player tho?
B
4
Posts: 11
Reputation: 220

Post » Fri May 29, 2015 2:01 am

anybody?
B
4
Posts: 11
Reputation: 220

Post » Fri May 29, 2015 8:41 am

Use the textbox object, not the text object..

https://dl.dropboxusercontent.com/u/485 ... rName.capx
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: babymumu and 4 guests