In my last map I used some blinking objects. This "blinking can only be accomplished by using dynamic color, not an easy thing to learn. So I'll post what I know (this comes directly from my Tankgalore map file found here as well as .
for my own, or others' future reference
========================================
[channel]
*channel= alpha, red, green, or blue
========================================
[channel] sinusoid [period] [offset] [weight]
*sinusoid= sine wave
*period= time between waves aka time before it goes back to it's starting value. it starts automatically at the maximum value
that's a mathamatical period at least (trig)
*offset= delay before cycle starts (helpful for the alpha channel)
weight= time spent at max
========================================
[channel] limits [min limit] [max limit]
*min limit= minimum saturation of a channel (at the wave's max; wave=sine wave)
*max limit= maximum saturation of a channel (at the wave's min; wave=sine wave)
========================================
[channel] sequence [period] [offset] [list of states...]
*period= see def. earlier
*offset= see def. earlier
*states= 0-active clamDown 1-no clamp 2-active clampUp
========================================
[channel] clampUp [period] [offset] [width]
[channel] clampDown [period] [offset] [width]
I don't really understand these yet
========================================
here's an example.
For a blue flashing object that doesn't disappear use this as the dynamic color:
dynamicColor
name bisodc
green limits 0 0
red limits 0 0
alpha limits 1 1
blue limits 0 1
blue sinusoid 4 0 3
end
the sinusoid implies that the cycle takes 4 seconds, has no delay when you join, and stays at it's max/min for 3 seconds. I hope this helps you.
but its SO complicated 0_0
ReplyDeleteI never said it was easy to figure out, but once I did, it was much easier to understand. Before, I had no idea what the terms meant. I think that understanding Sin waves makes it easier to picture though.
ReplyDelete