How do I change blend mode of shadows

Get help using Construct 2

Post » Sun May 10, 2015 3:19 am

I have shadows at 50% opacity and when they go over each other I do not want the area to become even darker, is there any way I can do this?
B
7
S
1
Posts: 18
Reputation: 461

Post » Sun May 10, 2015 7:35 am

Hey @blohod, :)

One approach is to place the shadows on their own layer.

To do this:
1. Create a new layer above your game.
2. Set its background color to white.
3. Set its "Transparent" property to "No", to make it solid.
4. Place the shadows on this layer, or if the shadows aren't their own objects, just arrange for the shadows to be rendered to this layer.
5. Set the shadows to be 100% opaque.
(This way a shadow by itself is black, and two shadows overlapping each other are also black. Everything not in shadow will be white.)
6. In the layer's properties, under effects, add the "Multiply" effect.
(You should now be able to see through the layer everywhere the layer was white, and you should see solid black shadows everywhere it was black.)
7. In the layer properties, set the opacity to something around 30%, so that the shadows won't be solid black. (Unless that's what you want.)

Finally, depending on how your shadows are cast, you may want to separate your other game objects onto a layer that can receive shadows (below the shadow layer), and a layer that ignores shadows (above the shadow layer.)
B
27
S
18
G
8
Posts: 328
Reputation: 6,158

Post » Mon May 11, 2015 5:37 am

@fisholith
Thanks for you help, it works now.
B
7
S
1
Posts: 18
Reputation: 461


Return to How do I....?

Who is online

Users browsing this forum: beguinner, mcscooter, totoe, Yahoo [Bot] and 21 guests