Layers ignoring other Layers possible?

Discussion and feedback on Construct 2

Post » Tue May 27, 2014 6:51 am

Hi.

Is there a way to make one specific layer (The Background layer) ignore the Opacity layers.
I want the opacity layers to only affect the sprite layers.

Basically, the opacity layer tinges a sprite layer according to the color. But right now it also affects the background layer which is undesirable.
See example

Image
B
8
S
2
Posts: 163
Reputation: 1,115

Post » Tue May 27, 2014 12:20 pm

What is an opacity layer?! You are using a colored layer with some blending mode to tint the layers (and their Sprites) below..? Something like an Adjustment layer in After Effects?
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Tue May 27, 2014 12:25 pm

Its basicly a normal layer with an opacity set to 50%. This gives that color to the layers behind it. But i dont want that color to affect the background layer in any way. Only the sprite layers.

Or what you said. Same thing
B
8
S
2
Posts: 163
Reputation: 1,115

Post » Tue May 27, 2014 12:31 pm

I think you can use a blend mode on your background sprites so they will be on top of everything.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Tue May 27, 2014 12:39 pm

I tried every possible blend mode. None of them has a good effect
B
8
S
2
Posts: 163
Reputation: 1,115

Post » Tue May 27, 2014 2:59 pm

@Ldk Unfortunately it doesn't seem that there is a way to use the Sprites of one layer to mask an other layer in the way that you want. I raise (again, I know, I must be very predictable by now, I am sorry) the need for a masking system in Construct 2. Blending modes just doesn't cut it.

What you can do however, is to use sprites as color transparencies on top of your art sprites within the same layer(s). Set the webGL effect to to overlay (or color) and make sure the layer(s) "Force own texture" parameter is set to "No".

Here is an example capx, using 2 colored "transparencies" to simulate the warm color of the sunset and the blue color of the night.
You do not have the required permissions to view the files attached to this post.
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Tue May 27, 2014 6:56 pm

@eli0s
Thank you i will see if it can work for my requirements.
I agree. Not having a masking system is a major downfall.
B
8
S
2
Posts: 163
Reputation: 1,115


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 9 guests