How do I apply effect to all layers but one?

Get help using Construct 2

Post » Mon Aug 31, 2015 7:00 pm

Here's what I want to do: apply an effect to all layers except one. Is there any way to do this short of applying said effect every layer above and below the one affected? Because that works...but the perf cost is not realistic.
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,187

Post » Mon Aug 31, 2015 10:38 pm

You'll just have to apply the effect to every layer you want affected. The performance cost is going to be the same regardless, unless optimizations are made in the engine for this specific case -- e.g. compositing the lower layers and applying the effect, then doing the same with the upper layers. Even in the best case, the effect is being applied twice, which is a lot considering that both applications are full screen.

If possible, you should simplify your layer structure to reduce the number of layers you need to apply the effect to.
Moderator
B
113
S
41
G
20
Posts: 1,586
Reputation: 19,106

Post » Sun Sep 06, 2015 1:27 am

@linkman2004

A belated thanks for the reply. I found a slightly more optimized way to do this for some shaders: Effect Mask. For layer effects with a mask variant, the effect applies to the background, ie., all layers below it.

So, if you want to have an effect apply to all but one layer, you:

put Effect Mask on a blank layer right below the layer that is supposed to remain unaffected. Turn off layer transparency.

Add the effect individually to all layers above the unaffected layer.
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,187


Return to How do I....?

Who is online

Users browsing this forum: el3um4s and 10 guests