txt obj not changing it's color on other layouts

Get help using Construct 2

Post » Wed May 04, 2016 5:07 pm

When you choose a nickname and a color for you nickname, it only applies the color on the first layout. I want it to apply the colors on any layouts on which the txt obj is.
Video: https://www.youtube.com/watch?v=MTyEe-M ... e=youtu.be
Burry me with my empty hands sticking out the ground, so that all can see, that the one who had the world on his hands, died with them empty.
B
19
S
4
G
4
Posts: 133
Reputation: 3,068

Post » Wed May 04, 2016 6:02 pm

My thinking is that you can either set an array or global variable (the array would probably be better) to be set with the numeric values for the color that you want your text to be. On the start of your layouts you set the text color to the values you saved when selecting color in your initial layout.
B
56
S
33
G
23
Posts: 334
Reputation: 16,743

Post » Wed May 04, 2016 9:24 pm

I did it with variables, but im curious on why this: http://prnt.sc/b0c18p doesn't apply to all layouts..
Burry me with my empty hands sticking out the ground, so that all can see, that the one who had the world on his hands, died with them empty.
B
19
S
4
G
4
Posts: 133
Reputation: 3,068

Post » Wed May 04, 2016 9:29 pm

When working with layouts, you can try including a global event sheet on every layout that sets common parameters On Start of Layout for situations like this.
Mistakes were made.
B
49
S
24
G
107
Posts: 1,581
Reputation: 60,303

Post » Thu May 05, 2016 1:14 am

Image
B
64
S
23
G
7
Posts: 1,483
Reputation: 10,827

Post » Thu May 05, 2016 9:17 am

Well that one took 5 times less code than mine and its actually really simple lol
I will wisely use it, thanks
Burry me with my empty hands sticking out the ground, so that all can see, that the one who had the world on his hands, died with them empty.
B
19
S
4
G
4
Posts: 133
Reputation: 3,068


Return to How do I....?

Who is online

Users browsing this forum: matriax, plinkie, R0J0hound and 3 guests