"Visible" Objects Appearing Invisible

Get help using Construct 2

Post » Sat Feb 25, 2017 11:07 pm

My apologies if the topic heading is confusing. The issue I'm having is, indeed, confusing. I don't think I've encountered this EVER before.

I'm working on a 2D side-scroller.

I have three groups of layers - A, B, and C - that make up three layers of rooms - back, middle, and front.
Each group is made up of four layers, themselves...
- Background - force own texture (true), transparent (no)
- Main - where the main character exists
- Lighting - for all light-based objects (blend mode Destination out)
- Foreground

Up to this point, everything works and appears as it should.

I've successfully made it so my main character, Mr. Spy, moves between the layer groups just fine.
When switching between layers, if Mr. Spy goes back a layer group (such as from C to B ), then the layer closest to the player's vision is turned invisible (if moving from B to C, layer groups A and B are invisible), thus making the non-transparency and texture forcing a non-issue.

So far, for testing purposes, I have a HangingLight object with a light cone in the B layer group only (on the Layer B Lighting layer). Going through either pair of doors - that lead one to Layer Group A or one to Layer Group C - is fine. But when moving BACK TO Layer Group B, where the lights are, the lights are in effect, and yet they cannot be VISIBLY seen like when you first run the game. Meaning, you can see the EFFECT of the light cone making anything overlapping the light object more visible, just like normal light, but you can't actually see the white transparency of the light object, itself.

I am at a complete loss as to why this is.

CONTROLS: Arrow keys to move, A on a door to open
https://dl.dropboxusercontent.com/u/36080515/MrSpy%20beta%2002.capx
I'm seeking Narnia. Who wants to come with me! Aslan is on the move!
B
139
S
22
G
8
Posts: 777
Reputation: 14,830

Post » Sat Feb 25, 2017 11:25 pm

When you jump around in layers like that are you also making sure objects that are on top and bottom stay in the right order?

That would be my guess.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Sun Feb 26, 2017 2:48 am

Everything is assigned to a layer and the only object jumping layers is the MrSpy object. So nothing else should be changing.
I'm seeking Narnia. Who wants to come with me! Aslan is on the move!
B
139
S
22
G
8
Posts: 777
Reputation: 14,830


Return to How do I....?

Who is online

Users browsing this forum: jorgmaquoi, senecaa and 17 guests