Region.LightLevel - When -100 isn't dark enough, where do you go?

Started by Lewis, Thu 22/11/2012 12:44:01

Previous topic - Next topic

Lewis

Hi again, folks.

This one's really baffling me. I've set a region's light level to -100 in the script at one point, which is the lowest possible light level. But objects and characters are still entirely visible.

The effect I'm going for is that one area of the room becomes completely pitch black - the character can walk in and out of it, but you shouldn't be able to see the character when they're within this region.

I've also set up several other regions so the light level tapers in and out when you enter and exit the area - but that one area that's supposed to be pitch black still leaves the guy visible.

Any ideas on this?
Returning to AGS after a hiatus. Co-director of Richard & Alice and The Charnel House Trilogy.

selmiak

put a black object over the area and set the baseline to below the lowest point of the walkable area (well, just have the black object reach below the walkable area...). You can even use alpha transparency on the edges in pngs to fade the character to black.

MurrayL

You could also use the OnEnter and OnLeave events of the region to set character.Transparency to 100 and 0, respectively.

Lewis

Those are great workarounds!

Weird that -100 isn't entirely dark in the first place, but problem solved nevertheless. Cheers!
Returning to AGS after a hiatus. Co-director of Richard & Alice and The Charnel House Trilogy.

SMF spam blocked by CleanTalk