Using HSL Masking with Multiple Shadowlights

Get help using Construct 2

Post » Fri Feb 24, 2017 1:30 pm

Hey guys, I followed this ( https://www.scirra.com/tutorials/5005/m ... ing-lights ) brilliant tutorial by Ashley to add multiple shadowlights. It works perfectly, even with cones of vision! However, what I was hoping to do was have the 'unseen' areas represented in grayscale, as in Monaco (What's Yours Is Mine).

Image

I've tinkered about with a few methods, but ultimately I think this will have to be done with an additional additive layer between my light layers and my foreground, which would roughly mirror the foreground. Can anyone think of a shorter way round?
The LEVEL GENERATOR TOOLKIT



24 functions dedicated to producing randomly generated terrain for all kinds of games.
B
25
S
7
Posts: 242
Reputation: 2,306

Post » Tue Feb 28, 2017 12:07 am

You're way ahead of me. :-p I am building a strategy game though.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,418
Reputation: 4,830

Post » Tue Feb 28, 2017 1:48 pm

That's a screenshot from Monaco that I gave as an example of what I meant (since it's not easy to explain), not my own work.
The LEVEL GENERATOR TOOLKIT



24 functions dedicated to producing randomly generated terrain for all kinds of games.
B
25
S
7
Posts: 242
Reputation: 2,306

Post » Wed Mar 01, 2017 5:45 pm

Just experiment with tutorials and combining and tweaking tutorials. That is how I built all of our client.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,418
Reputation: 4,830

Post » Thu Mar 02, 2017 1:29 pm

Here's my solution:

Add a layer in-between the lighting layers and the top layer (on which action etc takes place). Call it 'Shadow'
Place Paster on 'Shadow' layer
Paste all items from the top layer which you want to show in the shadows onto the Paster
Drop the Shadow layer saturation to 0, set to additive blend, and adjust opacity to taste
The LEVEL GENERATOR TOOLKIT



24 functions dedicated to producing randomly generated terrain for all kinds of games.
B
25
S
7
Posts: 242
Reputation: 2,306


Return to How do I....?

Who is online

Users browsing this forum: suzannegrey and 30 guests