local temp variables

Discussion and feedback on Construct 2

Post » Mon Sep 09, 2013 10:02 pm

I know about instance and global variables, but they are persistent throughtout the whole layout (or game). But is there any way to declare a temporary local variable that could be checked in a subevent, but would be removed/destroyed at the end of the event/subevent?
B
14
S
6
G
1
Posts: 143
Reputation: 1,795

Post » Mon Sep 09, 2013 10:10 pm

Does THIS entry in the manual on 'local' variables help?
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
86
Posts: 5,416
Reputation: 59,518

Post » Mon Sep 09, 2013 10:11 pm

Right-clicking on any sub-event will show 'Add local variable', instead of 'Add global variable'.
ImageImageImage
B
71
S
22
G
241
Posts: 3,734
Reputation: 134,494

Post » Mon Sep 09, 2013 10:24 pm

Thanx. I don't know how I missed that, but thanx.
B
14
S
6
G
1
Posts: 143
Reputation: 1,795


Return to Construct 2 General

Who is online

Users browsing this forum: Tjums and 6 guests