Copying text from TextBox?

Just started using Construct 2? Post your questions here

Post » Tue Jun 16, 2015 3:53 pm

Hi, I need some help.
I've made a simple layout with a TextBox:

Image

I type a random name like "John" and then I click "OK" to go to next layout:

Image

How can I replace this text ("Player name") with the random text I've typed in previous layout's TextBox?
Thank you very much!
B
19
S
6
G
1
Posts: 59
Reputation: 1,853

Post » Tue Jun 16, 2015 5:21 pm

when you click ok button you should save into a variable and when the other layout start you should change the player name with the variable.
B
31
S
13
G
6
Posts: 355
Reputation: 5,058

Post » Tue Jun 16, 2015 6:02 pm

Thank you very much! I'll try this :)

EDIT: It works!! I had to figure out how to send the text to a Global Variable (set Variable to value "TextBox.text") but it's now perfect.
Thanks again! =D
B
19
S
6
G
1
Posts: 59
Reputation: 1,853


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest