How do I create a local variable?

Get help using Construct 2

Post » Mon Jul 07, 2014 11:49 pm

The Docs say this: "right-click on an event, another variable, or an empty space in the event sheet, and select Add global variable or Add local variable."

When RMB on the event sheet I only get the add Global variable option. No local options, I know this is a dumb question, but, I just don't see it? I tried creating a group and then doing this as well to see if I needed to define a local space first, but it's still the same result....

By the way I own the personal license so I know it can't be that I am limited by the free version. Thanks for the help in advance.
B
6
Posts: 27
Reputation: 402

Post » Mon Jul 07, 2014 11:52 pm

You can only create Local variables on sub-events.
ImageImageImage
B
71
S
22
G
240
Posts: 3,734
Reputation: 133,994

Post » Tue Jul 08, 2014 1:22 am

I think you can create a global variable and then drag it onto an event where it will automatically become a local.
Not experienced enough to know if there's another way - saw this on English Acorn's Variable video on Youtube.
B
8
Posts: 6
Reputation: 317

Post » Tue Jul 08, 2014 9:58 pm

Thanks for the replies. I finally found it. I actually had to RMB on an actual subevent and then scroll in the dropdown to an "add" option which then game me another dropdown menu that included the local variable. I got it working now though!
B
6
Posts: 27
Reputation: 402

Post » Wed Jul 09, 2014 12:04 am

Just select an event and press 'v'
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596


Return to How do I....?

Who is online

Users browsing this forum: RalleRoyal, totoe and 21 guests