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
131
S
29
G
81
Posts: 5,328
Reputation: 56,630

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
21
G
221
Posts: 3,649
Reputation: 124,227

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: No registered users and 6 guests