How do I get multiple Shadow Lights and Tilemap to work ?

Get help using Construct 2

Post » Thu Apr 23, 2015 1:59 pm

Hello,

I tried to implement a multiple Shadow Lights system with Ashley's advices from these two topics :

https://www.scirra.com/forum/concerns-with-the-light-shadow-so-far_t106486
https://www.scirra.com/forum/light-and-shadows-drawing_t106379

When I set the Shadow Light opacity to less than 100, you can see that the Shadow Light cast multiple polygons from a Tilemap object with Shadow Caster behavior, that overlap and so cumulate alpha (surely to avoid having a big concave polygon). This make a multiple lights system (with Alpha threshold as Ashley mentionned) impossible. I made a little project to illustrate the problem : https://www.dropbox.com/s/2d5gmgwxes129ua/MultipeLightsShadows.capx?dl=0 Just mouse click to apply or remove alpha threshold.

I manage to get close to the desired result by setting each Shadow Light at 100% opacity on a dedicated layer with 50% opacity, to get the "wrong" shadow into a flatten one. The superposition of the two layers give a good result but then I don't kwow how to apply a alpha threshold effect on the sum of the two layers. Here is the second example :
https://www.dropbox.com/s/xwj876hv3hbhoh6/MultipeLightsShadows2.capx?dl=0

Any idea ? I find no soluton.
B
14
S
4
Posts: 112
Reputation: 1,287

Post » Tue May 05, 2015 12:21 pm

I need helpppp
B
14
S
4
Posts: 112
Reputation: 1,287


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests