Jibble

Author Topic: Make the screen gradually darken  (Read 384 times)

Make the screen gradually darken
« on: 16 Jan 2018, 22:23 »
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

  • been programming computers since 1981
    • I can help with AGS tutoring
    • I can help with proof reading
    • I can help with scripting
    • I can help with story design
Re: Make the screen gradually darken
« Reply #1 on: 16 Jan 2018, 22:30 »
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
« Last Edit: 16 Jan 2018, 22:35 by dayowlron »
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

Re: Make the screen gradually darken
« Reply #2 on: 16 Jan 2018, 23:00 »
That's a really smart hack, I will try it out,

Thanks !

Snarky

  • Global Moderator
  • Private Insultant
    • Best Innovation Award Winner 2018, for his numerous additions to the AGS open source ecosystem including the new Awards Ceremony client and modules
    • Snarky worked on one or more games that won an AGS Award!
    •  
    • Snarky worked on one or more games that was nominated for an AGS Award!
Re: Make the screen gradually darken
« Reply #3 on: 16 Jan 2018, 23:31 »
Yes, that's how it's done. And if you use the Tween module, fading to black becomes a one-line command.