layerindex broken by a layer edit

Bugs will be moved here once resolved.

Post » Tue Jun 14, 2016 7:26 pm

Problem Description
If you delete a layer in the editor, then - during runtime - the layerindex system expression does not return the updated value of higher layers.

Attach a Capx
capx

Description of Capx
There are 6 layers; the event sheet writes the layerindex of layer "this_layer" into a text object. If you delete one of the lower layers and then run the layout you will observe that the layerindex for "this_layer" is not updated.

Steps to Reproduce Bug
  • Run the layout to see correct Layerindex result.
  • Delete a lower layer then run the layout and observe reported Layerindex value.

Observed Result
As above.

Expected Result
Correct Layerindex value should be returned.

Affected Browsers
  • Chrome: (YES)
  • FireFox: (YES)
  • Internet Explorer: (YES)

Operating System and Service Pack
W10 x64

Construct 2 Version ID
r229 64 bit
A big fan of JavaScript. Image Image Image
B
76
S
20
G
86
Posts: 2,359
Reputation: 52,712

Post » Mon Jun 20, 2016 3:54 pm

Thanks, good catch. Should be fixed in the next build.
Scirra Founder
B
408
S
242
G
92
Posts: 24,929
Reputation: 198,711


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests