The Daily Click ::. Forums ::. Klik Coding Help ::. Lighting?
 

Post Reply  Post Oekaki 
 

Posted By Message

Nessy



Registered
  20/01/2009
Points
  361
6th June, 2009 at 22:48:06 -

I need help with lighting. I can make a basic light, where it kind of glows. But what I want to know how to do is make it so you can see anything unless the light it on it.

Here is an example of what I mean.
Image
That is my game with the light off and on.

and this is what I want it like.

http://www.youtube.com/watch?v=uVzPmPfyRBE

Edited by Nessy

 
n/a

W3R3W00F

Drum and Bass Fueled Psycho

Registered
  08/11/2008
Points
  372

VIP MemberCardboard BoxThe Cake is a Lie
6th June, 2009 at 23:10:07 -

The easiest way I can think of doing this is creating an active object the size of the screen and color it black. Then, create the light by using the alpha channel, as this sets transparency.

 
An old and washed up once-kid

Nessy



Registered
  20/01/2009
Points
  361
6th June, 2009 at 23:23:55 -

Oh yeah, that should work. Thanks

Edit: Ah, yeah that works, but if I wanted other things to glow at other parts on the stage they can't now Also, what I was really looking for is a way that it could work like a flash light. Turns on and off. But this way has help too

Edited by Nessy

 
n/a
   

Post Reply



 



Advertisement

Worth A Click