Quick (stupid) question: global variables.

Get help using Construct 2

Post » Sat Jul 27, 2013 6:33 pm

Hi,

Are global variables set on Layout0Eventsheet destroyed or reset when you go to a different layout?

If i set GlobalHello = 1 on Layout0 and I try to access it later from Layout1, what will the value be?

Thanks fellers
B
11
S
4
G
2
Posts: 20
Reputation: 1,412

Post » Sat Jul 27, 2013 6:39 pm

They are not destroyed unless you use the 'Reset global variables' action yourself.
ImageImageImage
B
71
S
22
G
249
Posts: 3,763
Reputation: 138,577


Return to How do I....?

Who is online

Users browsing this forum: zenox98 and 29 guests