How do I display a textbox in all layers?

Get help using Construct 2

Post » Fri Jan 23, 2015 4:03 pm

writing on layer 1, the same text I wrote also appears in layer 2
B
4
Posts: 19
Reputation: 240

Post » Fri Jan 23, 2015 4:15 pm

Uh, why would you need that? Just place your text on the topmost layer?
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Fri Jan 23, 2015 4:21 pm

If you really need the text on all layers, then you can have separate instances of the same sprite by using copy and paste (onto the other layers). It's not the best solution though performance wise unless you know what you're doing.
B
60
S
20
G
56
Posts: 1,077
Reputation: 35,941

Post » Fri Jan 23, 2015 4:28 pm

for the player to put the name
B
4
Posts: 19
Reputation: 240

Post » Fri Jan 23, 2015 4:34 pm

Ok, I think what you want is a text box on one layer where the player types and the actual output text to show up on another layer? That is easy, just put each object on it's own layer and connect them using some sort of variable. For example when the user submits their name into the textbox the text is saved in a variable, then to display the text just set the text to the variable.
B
60
S
20
G
56
Posts: 1,077
Reputation: 35,941

Post » Fri Jan 23, 2015 4:37 pm

as I can do
B
4
Posts: 19
Reputation: 240

Post » Fri Jan 23, 2015 4:40 pm

That's what I want
B
4
Posts: 19
Reputation: 240

Post » Fri Jan 23, 2015 4:46 pm

See if this works for you.
You do not have the required permissions to view the files attached to this post.
B
60
S
20
G
56
Posts: 1,077
Reputation: 35,941

Post » Fri Jan 23, 2015 4:58 pm

I did not open and the version of sotfware
B
4
Posts: 19
Reputation: 240

Post » Fri Jan 23, 2015 5:05 pm

Well it's pretty easy to figure out. Just put your textbox object on one layer and your text object on another layer or wherever you want them. Make some kind of submit button/sprite then do something like.

On submit button clicked, set text to textbox.text

You don't even need to use variables with this set up as long as you are only asking for one piece of text.
B
60
S
20
G
56
Posts: 1,077
Reputation: 35,941

Next

Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Ryan Kocourek and 2 guests