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,800

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
140
S
31
G
88
Posts: 5,735
Reputation: 61,456

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
274
Posts: 3,826
Reputation: 151,295

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,800


Return to Construct 2 General

Who is online

Users browsing this forum: nad51 and 2 guests