Jump to content
thirith

Problem with intro sequence (fading black screen)

Recommended Posts

I've put together an intro sequence heavily based on kylandia's Black Text Intro Fade.

 

However, I'm running into the following problem with the code pasted below: during the fadeout of the text, the screen suddenly goes from black to showing everything normally. The text is still there, fading out, but I go from black background to the game world showing in a flash. Then, as the mission title and author name appear on screen, the background goes black again, only for the black to fade out.

 

Any idea why that is - and, more importantly, how I can solve it?

 


// Start with a silent black screen.
waituntil {time > 0};
cutText ["", "BLACK FADED"];
0 fadeSound 0;

// Spawn text effects.
_this spawn {

    // Starting quote as volume fades in.
    titleText ["The battle of Kavala hadn't gone well.\n\nThe scattered survivors wait for sunrise\nas enemy patrols search for them...","PLAIN",7];
    sleep 9;
    titleFadeOut 1;
    12 fadeSound 1;
    sleep 11;

    // New "sitrep style" text in bottom right corner, typed out over time.
    [
        ["TTLG presents: Herding Cats","font = 'PuristaSemiBold'"],
        ["","<br/>"],
        ["by Thirith","font = 'PuristaLight'"],
        ["","<br/>"],
        [" ","font = 'PuristaLight'"]
    ]  execVM "\a3\missions_f_bootcamp\Campaign\Functions\GUI\fn_SITREP.sqf";

    // Fade from black, to blur, to clear as text types.
    sleep 4;
    "dynamicBlur" ppEffectEnable true;   
    "dynamicBlur" ppEffectAdjust [6];   
    "dynamicBlur" ppEffectCommit 0;     
    "dynamicBlur" ppEffectAdjust [0.0];  
    "dynamicBlur" ppEffectCommit 5;  
    cutText ["", "BLACK IN", 5];
    
    sleep 16;
    [west, "PAPA_BEAR"] sideChat "We're sending a Hummingbird your way. Find a rally point to defend until they get there. Godspeed!";
};

Share this post


Link to post
Share on other sites

Try changing PLAIN to BLACK IN on first titletext line:

titleText ["The battle of Kavala hadn't gone well.\n\nThe scattered survivors wait for sunrise\nas enemy patrols search for them...","BLACK IN",7];

I'm guessing the 7 second delay is not really used with PLAIN.  But with BLACK IN, it will truly fade from BLACK to normal over 7 seconds.

  • Like 1

Share this post


Link to post
Share on other sites

Cool, I'll give that one a try.

 

Talking of which, I'm also hoping to add your "Patrol chatter" script to the mission, which has six survivors of an invasion gone wrong scattered around Kavala while patrols are looking for them. I think it might be a great way to make things more atmospheric - it should be pretty tense and exciting to cower in a bombed-out building while hearing CSAT soldiers calling to each other in the early-dawn fog.

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×