by Fuzzy » Thu Jun 07, 2007 11:58 pm
Sort of like a counter that flips rapidly between 0 and 1(on and off)? do you want it periodic in that short time, or erratic?
That is, it randomly picks a number between 85 and 95, or it shuts off intermittantly(goes to zero)?
For that, I would pick a number from one to 10, add it to 84. then dvide by 100 and assign that to the transparency.
For the other, again, a random number, but from 0.0 to 1.0. subtract a bit, say 0.2, and multiply by 4. That gives a range of -0.8 to 3.2. Use min/max to clamp it to zero and 1.0. Skip the if check and just clamp it both ways. Faster and less messy. That gives you a range of 0.0 to 1.0 with a high chance of it being 0.0 or 1.0 . use the result to multiply against yor transparency.
Play with those numbers and you will get a flicker that is either full on, or full off, with occasional weak bursts.
Last edited by
Fuzzy on Fri Jun 08, 2007 12:16 am, edited 1 time in total.
Mortal Enemy of IF....THEN(and Inspector Gadget)
Still ThreeFingerPete to tekdino