Adding Global Variable to a Group creates local

Bugs will be moved here once resolved.

Post » Mon Jul 22, 2013 3:20 pm

Steps to reproduce:
1. Create a Group in Events
2. Rightclick the group and select "Add > Add global variable"

Observed result:
The popup to set the variable details is for a local variable (windowtitle) and it creates an local variable if you proceed.

Expected result:
it should create a global variable OR the rightclick menu should say Add > Add local variable

Browsers affected:
no

Operating system & service pack:
Windows 7

Construct 2 version:
    139 (64 Bit)Bl4ckSh33p2013-07-26 18:12:32
B
52
S
15
G
6
Posts: 700
Reputation: 8,979

Post » Tue Jul 23, 2013 12:09 pm

This only seems a problem with groups-in-groups. A root level group correctly inserts a global variable. Only a sub-group says it will add a global variable but adds a local variable. An easy solution was just to make it say 'Add variable', not specifying either global or local, so that's what I've done for the next build.
Scirra Founder
B
382
S
223
G
86
Posts: 24,003
Reputation: 189,843


Return to Closed bugs

Who is online

Users browsing this forum: ginaadrson, Yahoo [Bot] and 0 guests