Flashlight: http://bit.ly/LOlERx(Left 4k Dead)
Stationary Lights: http://bit.ly/LOlrOn
How I create flashlight lighting is by using a white feathered(soft edged) triangle I made in Photoshop. I set the sprite in a new layer with a visible black background. Under effects of the triangle sprite, I put it as: Direction Out. I move the origin point so that it starts at the "origin" of the source of light(bottom of triangle). In the event sheet I tell the triangle to follow the mouse coordinates and connect it to the character. This all works and looks good, but...
But there are some problems:
1. When the mouse is on top of the character, the light is shown lighting the opposite way.
2. There are no shadows created when shined over stationary objects such as walls; the light just shines through/over it.
Is there an alternative way to create flashlight type lighting? How would I create shadows from the light? How can I create stationary lights (background planted lights)? Is is possible to create shadows given off the character from stationary lights?
I will make a tutorial on creating directional lighting once I find a way to create this effect.