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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now