Version 1.2 (Minor flash issue fixed)
Download Count : 522 (As of Jan 11th)
Ever want to add a flashlight to a dark/scary game? I think a lot of people have, and I stumbled upon a good way to do it. It's not perfect like a real-time shadow system, but it's simple and easy it use and integrate into any 3D games that are dark with excellent speed and little code.
Is it simple and basic? Yes. Does it get the job done? More-so than anything else I have seen.
The example is commented and easy to understand. Heck, I bet a novice user could figure it out.
As the game info explains, it doesn't fit into every game. Games that have large areas or have brightly colored textures (The ones in the example are kinda pushing it >.>) does look as good as they would with dark textures more hallway areas.
To fit this into your game, copy the obj_flashlight, spr_flash, and spr_dark into your game. The in-editable comments explain how you can change some of these to make the flashlight fit into your game more fluently.
Give it a shot and tell me how I did! Please post with your comments and suggestions on possible improvements.
Crediting InformationCredit is not needed, although it is nice and appreciated. You are welcome to share this with others as long as you do not claim it as your own. Thank you.
Edited by Kajio, 12 January 2009 - 03:15 AM.