Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Fade to Black
Fade to Black
2004-06-22, 6:48 AM #1
How do I make the screen do it in MotS? I forget, but I hope you don't.
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2004-06-22, 8:02 AM #2
0x400000 - JK fades the screen and restarts at the last save or the start of the level

Is it different in MotS than JK?

------------------
nytfyre m0d || f33l t3h p0w3r || t3h l0st c0gz || OMF > *
May the mass times acceleration be with you.
2004-06-22, 9:33 AM #3
But I don't want to end the level... I just want to fade to end a cutscene.
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2004-06-22, 1:37 PM #4
Theres a verb that lowers all the light levels in the level . . but I dont remember it offhand. [http://forums.massassi.net/html/frown.gif]

------------------
Dear lady, can you hear the wind blow, and did you know
Your stairway lies on the whispering wind.
:wq
And when the moment is right, I'm gonna fly a kite.
2004-06-22, 2:43 PM #5
Well, I looked for the verb GBK mentioned and couldn't find it in DataMaster... Then I thought to try specs, and found what I think he meant. ChangeAllSectorsLight(Int_LightValue)

However, I believe that will effect on the sectors' extra light value, so would not be useful unless everything was lighted with extra light...

You could try AddDynamicTint(), however I believe that might have the same effect, but I don't know.

However, I'll give ya some code which should work...

Code:
symbols

float fade_time

float i local
int color_effect local

end

code

for (i = 1; i >= 1; i=i-.01){
    color_effect=NewColorEffect(0,0,0,0.0,0.0,0.0,0,0, 0, i);
    Sleep((fade_time/100.0));
    FreeColorEffect(color_effect);
}


I left it kinda blank cause I'd imagine you'd want to add it to another cog...
It should work. At least according to DataMaster, lol.
That last part of NewColorEffect adds black. 1 is no black, 0 total black. So this cog just basically runs through 1 to 0 changing the amount of black. It goes through a hundred shades, so should be pretty decent. 255 if you want it even smoother, I guess (You'd want to update the Sleep() message then)

------------------
_ _ _____________ _ _
Wolf Moon
Cast Your Spell On Me
Beware
The Woods At Night
The Wolf Has Come
_ _ _____________ _ _
Wolf Moon
Cast Your Spell On Me
Beware
The Woods At Night
The Wolf Has Come
2004-06-22, 3:01 PM #6
Thanks a ton, SniperWolf.
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2004-06-22, 6:15 PM #7
Its not in the Datamaster because the Datamaster lacks Mots verbs. SM said once he /might/ add them . . . dont count on it. [http://forums.massassi.net/html/tongue.gif] [http://forums.massassi.net/html/wink.gif]

------------------
Dear lady, can you hear the wind blow, and did you know
Your stairway lies on the whispering wind.
:wq
And when the moment is right, I'm gonna fly a kite.
2004-06-23, 2:01 PM #8
There's a method I used in JK. I use the Actor Flags 0x400000, and I wait 1 second before changing levels... Ah, yes... I end level there. Therefore, it won't restart the level...
There is another method I use all the time in JK. Have things produce the light (ThingLight), and when you wish to fade to black, dim the lights. Example:
Code:
startup:
        sleep(1);
        ThingLight(light0,1,1); 
        ThingLight(light1,1,1); 
        ThingLight(light2,1,1); 
        ThingLight(light3,1,1); 
        sleep(1);
        print("The screen has faded in!");
        sleep(5);
        ThingLight(light0,0,3); 
        ThingLight(light1,0,3); 
        ThingLight(light2,0,3); 
        ThingLight(light3,0,3); 
        print("Slowly fading out...");
        sleep(3);
        print("End of movie...");
        sleep(1);
        print("Begin the game!");
        ThingLight(light0,1,.1); 
        ThingLight(light1,1,.1); 
        ThingLight(light2,1,.1); 
        ThingLight(light3,1,.1); 
return;

Just a little something.
Edward's Cognative Hazards

↑ Up to the top!