How do I deal with Shadow Light, Tilemap and Z Order

Get help using Construct 2

Post » Wed Mar 25, 2015 9:13 pm

Hello,

If I have a Shadow Light object and some walls (tilemap) with Shadow Caster behavior on top of layer (as I want to display it and not being shadowed) , is it possible to display only the walls that are close to the light source and not all of them ? If a wall is separated from the source by another wall, I'd like to not display it.

Anyone has found a solution or it is impossible with the implementation of Shadow Light object ?

Edit : here's a modified image from a previous post that talks a bit about what I want.

This in construct 2 :
https://www.dropbox.com/s/6vsoblo56a2qzz4/shadow1.png?dl=0

What I would like to have :
https://www.dropbox.com/s/ixr9t3lcc3vx81f/shadow2.png?dl=0
B
14
S
4
Posts: 109
Reputation: 1,281

Post » Wed Mar 25, 2015 11:33 pm

Take a look at this ? https://www.scirra.com/manual/163/line-of-sight
Never used it thought.
Probably won't help you to cast shadow over a wall, but could help you to hide the walls you're not supposed to see.
B
12
S
7
G
7
Posts: 448
Reputation: 4,272

Post » Thu Mar 26, 2015 11:23 am

Thanks for your help Coin Coin ! , but I think this won't work with the Tilemap, as the tiles are one whole object and I can't hide some tiles while other are visible.

Actually I can have the desired effect (hidden walls) if the walls of the TIlemap are black and the shadow is black too. Thus everything that is in the shadow merge together.

Anything else ?
B
14
S
4
Posts: 109
Reputation: 1,281


Return to How do I....?

Who is online

Users browsing this forum: ashishv, kiugetski and 1 guest