How do I break lighting around obstacles?

Get help using Construct 2

Post » Sun May 17, 2015 6:28 pm

Message: otaconnor is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
I'm trying to get my lighting to clip around objects like this.
In my game, things cannot move if they have light on them.
The idea is that when the lighting "breaks" around a solid object, or another enemy, whatever is behind it will be able to move, now that it is in the "shadow" (just some area with no light) of something else.

Also, for it to work even better, can you make your LOS a cone that only reaches so far?

Thank you so much!
B
5
Posts: 37
Reputation: 299

Post » Sun May 17, 2015 6:35 pm

Wouldn't using obstacles within line of sight do what you want?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun May 17, 2015 6:36 pm

Yeah, but I want that LOS to be visible by flashlight
Edit: So if the LOS breaks, the flashlight's light does too, around the object.
B
5
Posts: 37
Reputation: 299

Post » Sun May 17, 2015 7:05 pm

And the Shadow Light object isn't good enough?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun May 17, 2015 7:30 pm

Can I use that to create lighting that will only illuminate parts of the level the flashlight light hits?
B
5
Posts: 37
Reputation: 299

Post » Sun May 17, 2015 7:42 pm

Look at the examples shipped with C2..
New project - shadow light..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun May 17, 2015 7:47 pm

I'll check it out when I'm home. Thank you!
B
5
Posts: 37
Reputation: 299

Post » Sun May 17, 2015 10:47 pm

Can't seem to get it to do what I need. How would I set it so my flashlight light will cut around anything that it hits?
B
5
Posts: 37
Reputation: 299

Post » Mon May 18, 2015 7:32 am

What do you mean by cut around?
Did you look at the examples?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon May 18, 2015 4:27 pm

Image

Yeah, I was able to get some of it working. The part I cannot figure out, is how to make the flashlight light break off like I half a**ed drew, whenever it hits an obstacle.
The light will also break around enemies.
That would essentially be my way of showing what the LOS is.
B
5
Posts: 37
Reputation: 299

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests