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

Black screens

Recommended Posts

How do I make a fade to black effect? I need the whole screen to go black, preferably with a nice fade effect, covering the hud and everything but yet allowing to display certain hudmessages.

Share this post


Link to post

Script "Fade to Black" (VOID)
{
    SetFont ( "BIGBLACK" ) ;
    SetHudSize ( 320,240,0 ) ;
    
    HudMessage(s:"A"; 
    HUDMSG_FADEINOUT, 1, CR_UNTRANSLATED, 0, 0, 2.0, 1.0, 0.8);
    
    ACS_NamedExecuteAlways("Text Atop the Black", 0); //Execute the script that displays the text you want on top
}
Something like this. All you'll really need a pure black image to use as a GRAPHIC file, so yeah. Preferably something 427x240, for this particular script. Could do to tweak it a bit for your particular map, but yeah.

Share this post


Link to post

Neat, I imagined I would need to use a black image but I wasn't sure how to do the fading. Thanks.

Share this post


Link to post

I used that code but the black screen is too small, and I need it to be stretched to whatever resolution one may use. I use a 1600x900 res, and even if I put those values on the code, it doesn't work and the image is shown even smaller(it's like it doesn't take that much res)

Share this post


Link to post

Ah yeah, overlooked that, I did. Try something like a 1920x1200 size black image then. That should even play nice with 16;10 monitors.

In the end, maybe FadeTo is a better way to go about it, as the problem will probably once again rear its head on future Super-HD monitors.

Share this post


Link to post

Yes, the fade command doesn't hide the crosshair and hud, but that about future monitors is also true so i'll just use fade in and out. It looks pretty cool actually, great for adding cool transicions and ease storytelling

Share this post


Link to post

Except wait, wouldn't it be scaled to new monitors? Ugh, I don't even remember how the stupid game works anymore...

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
×