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 → Simple Cog ... for coggers:
Simple Cog ... for coggers:
2002-02-19, 4:19 PM #1
I have been working with some cogs for my level, but I am stuck on this:
I want a cog to make a bright white flash (like force blind) that fades away back to normal viewing in like 3-5 seconds when I enter a sector. I am still learning with cog, and have no way for me to go about this. Oh yea, and this is for Single Player. (All who help get full credit.)

------------------
"The future is not determined by a throw of the dice, but is determined by the conscious decisions of you and me."
I am addicted to ellipses!!! AHHH!!! ...
2002-02-19, 4:35 PM #2
Adddynamicadd(Player, 255, 255, 255);

 


The flash is considerably shorter than 2 or 3 seconds, but its the easiest way to do what you are describing.

------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.
2002-02-20, 5:43 AM #3
Code:
#02/2002 GBK
Symbols
Message Startup
Message Entered
Thing Player   Local
Sector Trigger
End
Code
Startup: Player = JKgetlocalplayer(); Stop;
Entered: Adddynamicadd(Player, 255, 255, 255);
Stop;
End


That cog will create a white flash each time the player enters the sector.

If that isnt what you wanted, respond with further details.

------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.
2002-02-20, 9:55 AM #4
Alright, thanks alot!
PS: is the 255, 255, 255 the colors? That would be great if I could change it ... I didn't know you could. (If it isn't, don't worry about it. )

I have you down in the readme! Thanks!

------------------
"The future is not determined by a throw of the dice, but is determined by the conscious decisions of you and me."
I am addicted to ellipses!!! AHHH!!! ...
2002-02-20, 1:20 PM #5
if the flash is too short for you, just have a pulse started when the player enters the sector and in the pulse message, you do the flash as described above...you could also make it fade out this way. And yes, the values define the color Red Green and Blue, the higher, the brighter.
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)

↑ Up to the top!