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
21
G
231
Posts: 3,695
Reputation: 129,366


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 66 guests