Cone of light

For questions about using Classic.

Post » Fri Jan 09, 2009 2:09 am

Is it possible to create a cone of light with the light and shadow caster objects? For example, for use in making a flashlight.
B
3
S
1
G
3
Posts: 105
Reputation: 1,312

Post » Fri Jan 09, 2009 2:38 am

You could sandwich the light object between two shadow-casting rectangles like this:



And, of course, if you just want one cone you can always cap off one end with another rectangle.
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Fri Jan 09, 2009 5:10 pm

Is there any way you can get light to reflect off a surface?

B
3
S
2
G
4
Posts: 271
Reputation: 2,017

Post » Fri Jan 09, 2009 5:28 pm

[quote="stainsor":299vnh93]Is there any way you can get light to reflect off a surface?

[/quote:299vnh93]

There might be some really complex way you could fake it, but it's not actually supported.
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Fri Jan 09, 2009 7:48 pm

No, reflecting isn't supported yet. Also, if you use a blank texture in the Light object, the shadows still draw - and you can use a cone-shaped Sprite for a cone shaped light.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Fri Jan 09, 2009 8:11 pm

[quote="Ashley":21aa5ib2]No, reflecting isn't supported yet. Also, if you use a blank texture in the Light object, the shadows still draw - and you can use a cone-shaped Sprite for a cone shaped light.[/quote:21aa5ib2]

But then you have the problem of the light casting shadows all around it instead of just where it's pointing.
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Mon Jan 12, 2009 12:25 am

I think I found a good way of doing this. I make the light sprite look like a torchlight, but have black space all around it, so it looks like it's not lighting up those areas.
B
3
S
1
G
3
Posts: 105
Reputation: 1,312


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests