Dynamic Lights & Shadows

When i use the script, any screen that i have tinted to look like night is automatically turned to 255,255,255. how can i prevent this from happening?
thanx.
Hum...
you can't for the moment... as the auto-tint override the other call to the screen tinting...
I need to improve that... like be able to enable it or not... and make it better...

how it works.: No tinting if there is no light defined or if all the lights are turned on(basically in that case, it call a screen tinting with 0 value) in the map...
the formula to get the tint value is this one:

value= (lights_off/total_lights)*(-180)
tint(value, value, value, value)
Here the -180 is the complete night value, when all the lights are off.
it all the lights are on ( lights_off = 0) then value = 0
if there is no lights those 2 lines are not even called.

what I need to do, is to change the -180, to the actual screen tinting if there is one else use the -180.
Interesting ...
i want to use this script with the Pixel Movement Script (f0tz!baerchen)

But if i walk with two keys (arrow up&left) then the Lightning Script crashes on Line 360.

My Scripting is bad. My English too^^
Thats why i ask for help.

calis
Weird, it doesn't do that for me, and I use the Pixel Movement Script.

However, I think I'm having a similar issue like rastroll. I want to make lights for use during very dark tinted maps (night time), but the lights are very dull, even after tampering with the values...

I love this script and how it works; very simple and easy! If this could be considered, I would greatly, greatly appreciate it.
^^ don't worry an update is coming really soon...
Yeah I know that it doesn't use the actual Map tint...It'll be fixed, as with other things as well.
just be a little patient lol
nice job trebor. This is a preety nice script.. I think i may figure out that if a player pases through the light radius of the NPC projecting it, that an event will load. Sort of like, if player is visiable in the light then the NPC may attack the player, sound the alarm or whatever.. You ever think about doing something like that?
yes^^ I'm thinking of doing that, but it's not a part of the DLS, as it has nothing to do with lighting script :D.
I'll release, a Stealth game "engine", based on 1player, with all the stuff related to stealth games. Don't ask me when lol. It's planned :p

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=32271