Global Objects and Layer Transparencies

0 favourites
  • 2 posts
From the Asset Store
Globals 2.0
$3.99 USD
Globals 2.0 stores and group variables. You can also load and save data (variables) from/to JSON files.
  • Link to .capx file (required!):

    scirra.com/arcade/example/6017/global-object-layers-bug-test

    Steps to reproduce:

    1. Spawn global objects in your game on a specific, named layer. Make sure that layer exists in all your layouts.

    2. Switch between layouts. Make sure each layout has a different amount of layers, and that the layer number with your global objects varies.

    3. Have one layer overlapping the layer with your objects on it. Have the overlapping layer use a transparency. 'Force own texture' is not required for the experiment. The global objects will disappear with the transparent layer.

    Observed result:

    Global objects disappear with a transparent layer.

    Expected result:

    Global objects should be visible with the transparent layer, same as the rest of the text on that layout.

    Browsers affected:

    Chrome: yes

    Firefox: unknown

    Internet Explorer: yes

    Operating system & service pack:

    Windows 7, SP1

    Construct 2 version:

    Release 135 (64 Bit)

    Very difficult bug to track down from a large game that features many layouts, each with between 4 - 8 layers. The overlapping transparencies DO NOT cover the HUD in the game, but still cause global objects in the HUD layer to vanish. The transparency layer is used for lighting effects.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Closing, this project is working correctly. You have set up your layers in a confusing manner on layout 3 which is causing the problem. The global objects are on the following layers:

    Layout 1: created on layer 1 (HUD)

    Layout 2: only has one layer, so global objects are moved to layer 0 (HUD)

    Layout 3: has 3 layers; the global objects stay on layer 0 (Background). However layer 1 (HUD) is above that and is not transparent, so nothing on Background will appear - it draws over with an opaque white background. Move the HUD layer to the bottom or set Transparent to Yes and you can see all the global objects.

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