Make the screen gradually darken

Started by DarkMoe, Tue 16/01/2018 22:23:32

Previous topic - Next topic

DarkMoe

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 !

dayowlron

#1
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
Pro is the opposite of Con                       Kids of today are so much different
This fact can clearly be seen,                  Don't you know?
If progress means to move forward         Just ask them where they are from
Then what does congress mean?             And they tell you where you can go.  --Nipsey Russell

DarkMoe

That's a really smart hack, I will try it out,

Thanks !

Snarky

Yes, that's how it's done. And if you use the Tween module, fading to black becomes a one-line command.

SMF spam blocked by CleanTalk