How do I set Text to specific Global Variable ...

Get help using Construct 2

Post » Thu May 26, 2016 12:42 am

1-I have a local variable called "local" which i can set to a number x from 1 to 10
2-also i have 10 global variables named global1 , global2 ... global10
3-now i need to set a Text to one of the 10 global variables based on the "local" x-number , so if "local" is 3 then i want to set text to global3 . But i don't want to create a specific event (((((" if local=x , set Text to : globalx)))) for each "local" x-number .

So is there an expression to set text to global(local) ?


Hopefully i made sense :p
'Image'Image'Image
B
18
S
5
G
2
Posts: 96
Reputation: 2,347

Post » Thu May 26, 2016 12:55 am

You need to use an array. It will do exactly what you want.
ImageImageImage
B
71
S
21
G
221
Posts: 3,649
Reputation: 124,227

Post » Thu May 26, 2016 4:50 pm

blackhornet wrote:You need to use an array. It will do exactly what you want.


yep ! It did the job !

Thanks
'Image'Image'Image
B
18
S
5
G
2
Posts: 96
Reputation: 2,347


Return to How do I....?

Who is online

Users browsing this forum: NadeemAbbass, plinkie and 9 guests