How do I add text to the same global variable?

Get help using Construct 2

Post » Sat Mar 14, 2015 1:03 pm

Clicking on these buttons, they set their names into the global variable. How do I make that the text entered by user in the textbox to be added to the same global variable, at the end of the previous list of words? I read the full manual on the TextBox but couldn't find a way on - how to at least add the text to somewhere?

Here is my capx. If someone can please show me how to make it.
You do not have the required permissions to view the files attached to this post.
B
8
S
1
Posts: 110
Reputation: 767

Post » Sat Mar 14, 2015 1:13 pm

Should be with this:
TextBox.Text

eg
Code: Select all
name&Green.Variable1&";"&newline&TextBox.Text
B
32
S
6
G
2
Posts: 317
Reputation: 2,771

Post » Sat Mar 14, 2015 8:39 pm

thank you for your reply! and what about the textbox? how the entered text will be actioned? or it is enough just to leave the text entered and the code above will include it into the global?
B
8
S
1
Posts: 110
Reputation: 767

Post » Sat Mar 14, 2015 9:36 pm

Uh yeah maybe i don't fully understand what you mean. To access the textbox you just need to use the Textbox object and call the .Text to retrieve it. If you need it updated instantly, then you could probably use a on every tick action
B
32
S
6
G
2
Posts: 317
Reputation: 2,771


Return to How do I....?

Who is online

Users browsing this forum: Colludium and 19 guests