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 → Chickens say moo!
Chickens say moo!
2001-10-20, 10:04 AM #1
I need a cog, which i don't know if it's possible, that's why i ask for it, for a cutscene in my SP episode Slaves of the Empire, the cog should do this:
First all you see is a black screen, then after a second the black starts fading and you begin seeing something...
Understand?
Black screen > Black fades
The black should fade like force blinding...
Danke! [http://forums.massassi.net/html/biggrin.gif]

------------------
Guns don't kill people. Kids who play computer games do.
[edit: Visit Cave_Demon's site: http://cave2.2ya.com ! -stat]
[This message has been hacked by StaticX (edited September 11, 2001).]
WHAT?
2001-10-22, 9:10 AM #2
SetSurfaceLight()

Changes the light value of a surface over time

Use: SetSurfaceLight(surface, light, fade)
fade = fade time from 0 to light value

From JKSpecs
Hey, I'm here! But who cares?
2001-10-22, 9:28 AM #3
Doesn't do what it should do... I tried.

------------------
Guns don't kill people. Kids who play computer games do.
[edit: Visit Cave_Demon's site: http://cave2.2ya.com ! -stat]
[This message has been hacked by StaticX (edited September 11, 2001).]
WHAT?
2001-10-22, 12:10 PM #4
Hahahah I finnaly get in before you Risha !!

newColorEffect(0, 0, 0, 0, 0, 0, 255, 255, 255, 15.0);

for (i=0; i<=14; i=i+1)
{
newColorEffect(0, 0, 0, 0, 0, 0, 255, 255, 255, -1.0);
Sleep(0.01);
}

I hope I got the color code right ...

[This message has been edited by *_Seifer_* (edited October 22, 2001).]
2001-10-22, 12:21 PM #5
lol Seifer... i told him about that in chat... just didn't post the whole code... lol but you beat me on the boards [http://forums.massassi.net/html/wink.gif]
2001-10-22, 12:22 PM #6
oh, and it should be 0's (or maybe 1's b/c 0 might be transparent?)... 255/255/255 is white... 0/0/0 is black.
2001-10-22, 8:17 PM #7
Ya it might be, as I said in my last post, I may of got the color code mixed up :
2001-10-23, 5:23 AM #8
Works great, but... Now it would be nice to have the black actually fading so that the screen would not be black for the rest of the cutty [http://forums.massassi.net/html/smile.gif]

And i would like seeing it faidng like FORCE BLINDING [http://forums.massassi.net/html/biggrin.gif]

------------------
Guns don't kill people. Kids who play computer games do.
[edit: Visit Cave_Demon's site: http://cave2.2ya.com ! -stat]
[This message has been hacked by StaticX (edited September 11, 2001).]
WHAT?
2001-10-23, 6:51 AM #9
Try this out... it works... might want to modify some of it tho to suit your needs.

Code:
symbols

int		effectHandle=-1		local
int		i			local
int		pause=1
int		fadeSpeed=5

message		startup
message		timer

end

## Code Section

code

//-------------------------------------------------------------------------------------------------

startup:
	effectHandle = newColorEffect(0, 0, 0, 0, 0, 0, 1, 1, 1, 0);
	SetTimer(pause);
	return;

timer:
	for (i=0.005; i<=1; i=i+0.005)
	{
		freeColorEffect(effectHandle);
		effectHandle = newColorEffect(0, 0, 0, 0, 0, 0, 1, 1, 1, i);
		Sleep(0.01 * fadeSpeed);
	}

	freeColorEffect(effectHandle);

	return;

end


Pause is the time delay before it starts to fade back, and fadeSpeed is just to control how fast it fades back.
2001-10-23, 8:57 AM #10
YAY! IT WERKS!
/me gives Risukasa a beer

------------------
Guns don't kill people. Kids who play computer games do.
[edit: Visit Cave_Demon's site: http://cave2.2ya.com ! -stat]
[This message has been hacked by StaticX (edited September 11, 2001).]
WHAT?
2001-10-23, 12:22 PM #11
/me accepts the beer... although all i did was modify seifer's cog-work, so he deserves a beer too (well, maybe a half a beer [http://forums.massassi.net/html/tongue.gif] j/k)
2001-10-23, 4:51 PM #12
*Throws my crappy cog out the window*

AEYRHGHGGHGHGHG ! [http://forums.massassi.net/html/smile.gif]

↑ Up to the top!