layerindex broken by a layer edit

0 favourites
  • 2 posts
  • 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

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks, good catch. Should be fixed in the next build.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)