View Full Version : Fade to Black
Lord_Grismath
06-22-2004, 09:48 AM
How do I make the screen do it in MotS? I forget, but I hope you don't.
darthslaw
06-22-2004, 11:02 AM
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 (http://www.nightfire.uni.cc/site/page.php) || f33l t3h p0w3r (http://www.geocities.com/qrphome/pwp3/) || t3h l0st c0gz (http://www.tbns.net/GBK/ol/index.htm) || OMF > * (http://www.bkkbazaar.com/omf/)
Lord_Grismath
06-22-2004, 12:33 PM
But I don't want to end the level... I just want to fade to end a cutscene.
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.
:w (http://shauri.hopto.org)q (http://www.massassi.net/levels/files/2533.shtml)
LKOH_SniperWolf
06-22-2004, 05:43 PM
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...
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
Lord_Grismath
06-22-2004, 06:01 PM
Thanks a ton, SniperWolf.
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.
:w (http://shauri.hopto.org)q (http://www.massassi.net/levels/files/2533.shtml)
Edward
06-23-2004, 05:01 PM
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:
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.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.