Adventure Game Studio | Forums

AGS Support => Beginners' Technical Questions => Topic started by: DarkMoe on Tue 16/01/2018 22:23:32

Title: Make the screen gradually darken
Post by: DarkMoe on Tue 16/01/2018 22:23:32
Hi ! What I was trying to do, is slowly making the screen darken.

I couldn't found anything like that, so for now, I did 20 different pre rendered backgrounds at different brightness levels, it's a horrible solution, and doesn't take care of the sprites in the room.

Any way to do this in a better way ?
Thansk !
Title: Re: Make the screen gradually darken
Post by: dayowlron on Tue 16/01/2018 22:30:16
I have heard that you can create a gui that covers the screen, make it all black, then adjust its transparency going from 100 down to 0.

EDIT: reference:
http://www.adventuregamestudio.co.uk/forums/index.php?topic=49278.msg636472505#msg636472505 (http://www.adventuregamestudio.co.uk/forums/index.php?topic=49278.msg636472505#msg636472505)
Title: Re: Make the screen gradually darken
Post by: DarkMoe on Tue 16/01/2018 23:00:43
That's a really smart hack, I will try it out,

Thanks !
Title: Re: Make the screen gradually darken
Post by: Snarky on Tue 16/01/2018 23:31:04
Yes, that's how it's done. And if you use the Tween module, fading to black becomes a one-line command.