Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
NightFallKiller

Fading out and in

Recommended Posts

Hey everyone, I was just wondering if there's a script to make the screen slowly fade out to black (kinda like someone is fainting and slowly loosing sight) and then fade in from black in a new map, so it fades out, goes to a new map (I know how to do this) then fades in, i've tried FadeTo but that doesn't really seem to fade slowly, so any help would be appreciated, I'm using Doom In Hexen format btw.

Share this post


Link to post

You can set speed of fading of FadeTo :/.

Look at this example:
fadeto (0, 0, 0, 1.0, 5.0)
This example will fade to black in 5 seconds with maximum intensity.

Now let's take a look at template:
fadeto (red, green, blue, intensity, speed);

Red, green and blue are for setting color of the fade, remember these are numberic vaules and they go from 0 to 255.

Intensity is for changing transparency of the effect. So if it's 0.5 it will be half-transparent after it finishes fading, and 1.0 it will be maximum intensity.

Speed is how long it takes to fade, like 5.0 makes it fade for 5 seconds, and 2.5 makes it fade for 2 and a half seconds.

If you want to fade out, set the intensity to 0.0.

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×