nedd help with light regions!

Started by Hinders, Sun 02/11/2003 13:48:33

Previous topic - Next topic

Hinders

Is there any way to change the light regions value during the game?(with script) ???
----

Ytterbium

#1
Not that I know of. But it's easier to do with the area editor. Add a region and change its light value.

Currently in production: Septigon

squinks

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?

RickJ

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.

Hinders

thanks rickJ, need to change to night during the game ;)
----

RickJ

In that case you may find TintScreen (..) useful as well.  It can only be used with 16bit color though.  


Hinders

I´ll have to try them both and compare which is better.
Another question:
can you have it to fade out/in? ???
----

Isegrim

maybe do a small "while" loop, where you count up or down towards the desired value...
This post was generated automatically and therefore bears no signature.

SMF spam blocked by CleanTalk