Is there any way to change the light regions value during the game?(with script) ???
Not that I know of. But it's easier to do with the area editor. Add a region and change its light value.
I'm not too familair with regions, but shouldn't you be able to create multiple regions with different light levels, and then turn them on and off accordingly?
I think you are looking for this ...
Quote
SetAreaLightLevel (int area, int level)
Changes region number AREA to have light level LEVEL. This does the same thing as the Light Level textbox in the editor, but allows you to change it at run-time.
thanks rickJ, need to change to night during the game ;)
In that case you may find TintScreen (..) useful as well. It can only be used with 16bit color though.
I´ll have to try them both and compare which is better.
Another question:
can you have it to fade out/in? ???
maybe do a small "while" loop, where you count up or down towards the desired value...