[r110.2]Non-static Local Variable not working

Bugs will be moved here once resolved.

Post » Fri Nov 23, 2012 3:36 pm

Local variable doesn't seam to update at all when it's in non-static mode.

Http://www.box.com/s/ac712pzrptap98amy5z7
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
71
S
19
G
19
Posts: 1,919
Reputation: 16,910

Post » Mon Nov 26, 2012 5:13 pm

Closing as not a bug: this example is working as intended. The 'On key pressed' triggers run outside of the normal event loop; by the time "Group" runs in normal event evaluation, the local variable resets itself to its initial value, which is by design (since it is non-static). Workaround: make it a static local variable.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Tue Nov 27, 2012 6:32 am

OK, finally someone explained. Thanks. It was working 108!!
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
71
S
19
G
19
Posts: 1,919
Reputation: 16,910


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 4 guests