Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: xenogia on Tue 28/04/2009 05:39:45

Title: Screen fading out as character is walking?
Post by: xenogia on Tue 28/04/2009 05:39:45
I was wondering is there a way to slowly fade out a scene while a character is walking.

The only option I know is to use the FadeOut(#) command but that is blocking.  Is there a way around this?
Title: Re: Screen fading out as character is walking?
Post by: Gilbert on Tue 28/04/2009 06:15:54
Yes. It'd be pretty easy to do in 8-bit mode, but for 16/32 bit modes you can either:
1. Use TintScreen() to tint the screen with a gray colour about (1,1,1) to (50,50,50), but it seems that it won't go very dark even at the darkest gray.
2. Use an overlay/object/character/whatever which is a large black rectangle covering the whole screen and adjust its transparency in game.
Title: Re: Screen fading out as character is walking?
Post by: Trent R on Tue 28/04/2009 06:23:02
I'd go gui, since it takes 4.8 seconds to make one. And you could always check out the FadingThingsNonBlocking module (or whatever its called, can't remember off the top of my head)

[Edit]: Indeed, that is the name, and you can find it here (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=29637.0). Seems it has some trouble with 3.1.2, but shouldn't be too hard to get working.

~Trent