How do I a lantern effect with light stopping on walls

Get help using Construct 2

Post » Thu Jul 02, 2015 1:24 pm

I want to do something like this:
Image

This is a video made in construct(years a go showing the effect):
https://www.youtube.com/watch?v=cpRIzakjMhM

And this one made with Multimedia Fusion also years ago:
https://www.youtube.com/watch?v=COzqYouAY5Y

Whith shadow caster we can add shadows but how is posible create a light for a player that stop spreading with solid/obstacles?

I search in plugins, effects and behaviours and in the forums but i not find nothing that do this or maybe i missing something ¿?.

I have and idea to use a type of blend to create a mask for the entire layout that is only visible for the lantern area with some gradients and using also the shadow caster to get a similar effect but not will be same.

Is there any plugin or example i'm missing?
B
23
S
10
G
3
Posts: 538
Reputation: 4,426

Post » Fri Jul 03, 2015 12:55 pm

Here, give this a look and see if it's what you're looking for. It's made with beta 208.

ShadowLantern
B
103
S
38
G
19
Posts: 962
Reputation: 17,986

Post » Fri Jul 03, 2015 1:14 pm

Is the same/similar i made myself:
https://dl.dropboxusercontent.com/u/659 ... aster.capx

The problem is that when you put the shadows with opacity you can see the "Trick". This only works with shadows at 100% of opacity obviously.

I wonder how the hell the guy of the video made the effect with Construct years ago without shadow caster,etc... :P
B
23
S
10
G
3
Posts: 538
Reputation: 4,426

Post » Fri Jul 03, 2015 2:42 pm

matriax wrote:Is the same/similar i made myself:
https://dl.dropboxusercontent.com/u/659 ... aster.capx

The problem is that when you put the shadows with opacity you can see the "Trick". This only works with shadows at 100% of opacity obviously.

I wonder how the hell the guy of the video made the effect with Construct years ago without shadow caster,etc... :P


Ah, sorry, I had a brain fart this morning when making it. Here it is with opacity! The only change is that the lantern sprite needs to be below the shadow casters in the z-order (so the see-through effect happens to what's beneath).

1 layer shadows with opacity
B
103
S
38
G
19
Posts: 962
Reputation: 17,986

Post » Fri Jul 03, 2015 4:56 pm

Great! i see, you adjust the opacity in the layer instead on the ShadowLight, very good solution! :D

Now i'm experimenting with normal maps that have their own light, hope all this can merge without problems.
B
23
S
10
G
3
Posts: 538
Reputation: 4,426

Post » Fri Jul 03, 2015 9:36 pm

Here a video with a Personalized NormalMap + Shadow Caster + Lantern Effect
https://instagram.com/p/4sEdxbAL3p/

Screenshot in real pixels:
Image

Again thanks @C-7 for the help!
B
23
S
10
G
3
Posts: 538
Reputation: 4,426

Post » Sat Jul 04, 2015 8:13 pm

@matriax that effect looks realy awesome!
B
21
S
5
G
2
Posts: 181
Reputation: 3,499

Post » Sun Jul 05, 2015 5:31 pm

Very Good Matriax
CODE FOR FUN
B
22
S
8
G
2
Posts: 74
Reputation: 2,349


Return to How do I....?

Who is online

Users browsing this forum: Magistross, mtnboy22, Rable and 8 guests