How do I know if my player is in shadow

Get help using Construct 2

Post » Sun Nov 01, 2015 11:37 pm

Hello guys !
I am wondering if it's possible to know if a sprite or smtg else pinned to it can send the information that it is situed inside a light's shadow.
I would like to avoid all the raytracing things but am not sure how to do else !


Thanks a lot !
B
7
S
1
Posts: 29
Reputation: 481

Post » Mon Nov 02, 2015 1:57 am

How do you draw the shadows? Using the canvas? Or the shadowcaster behavior?
B
42
S
17
G
17
Posts: 2,247
Reputation: 17,481

Post » Mon Nov 02, 2015 4:48 am

Sounds like a stealth game... does the light source change locations or are the shadows in static locations for the layout?
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
71
S
19
G
8
Posts: 640
Reputation: 9,701

Post » Thu Nov 05, 2015 9:58 am

Hé guys, am using the integrated construct 2 shadow drawer. Light are not static. I found a solution using Line of sight btween the object and the source but am not fully satisfyed because I have to check every object, which is time expensive.
B
7
S
1
Posts: 29
Reputation: 481


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 12 guests