How do I make overlapping real time shadows blend together?

Get help using Construct 2

Post » Thu Jun 05, 2014 12:38 am

I've been trying to find a way to integrate real time shadows into my current project and I wanted to see if anyone has had any luck blending overlapping shadows. Here is a screenshot from one of the examples:

http://i.imgur.com/WkmjaqD.png

What I would like to figure out, is how to keep the overlapping shadow from getting darker. Can anyone lend some insight?
B
13
S
2
Posts: 33
Reputation: 771

Post » Thu Jun 05, 2014 1:40 am

Instead of lowering the light object's opacity, put the light object on a separate layer* (below your objects for the result you're after judging from your picture) and lower that layer's opacity.

*Don't forget that the default layer in C2 is opaque. If you create a layer and drag it bellow this "layer 0" it will be covered from it. I suggest creating 2 new layers and put your sprite objects on the top layer, your light object (which will hold the shadows) on the middle layer (remember to lower its opacity), and keep the bottom layer for your backgrounds.
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Thu Jun 05, 2014 3:13 am

Thanks for the tip. That's exactly how I have the lighting and shadows set up. The problem happens when two objects with the cast shadow behavior have intersecting/overlapping shadows from the same light source. The shadow becomes darker in the overlapping areas.
B
13
S
2
Posts: 33
Reputation: 771

Post » Thu Jun 05, 2014 3:21 am

I looked at your recommendation a little closer and got down to the bottom of it. Thank you for the help!
B
13
S
2
Posts: 33
Reputation: 771

Post » Thu Jun 05, 2014 11:03 am

Oh good :) For a moment I was really confused :D
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests