Global Objects and Layer Transparencies

Bugs will be moved here once resolved.

Post » Tue Jun 25, 2013 4:32 pm

Link to .capx file (required!):
http://www.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.
B
10
S
1
Posts: 38
Reputation: 1,964

Post » Tue Jun 25, 2013 5:10 pm

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.
Scirra Founder
B
395
S
231
G
88
Posts: 24,367
Reputation: 193,694


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest