if/else in conjunction with degrees rotation and opacity?
Posted: February 23rd, 2007, 10:37 am
I'm having a problem trying to figure something out:
I have two half rings, one smaller and inside the other. Both have a notch in them. Both are attached to a slider control such that when adjusted, they both rotate (simultaneously) in opposite directions.
What I need to accomplish is: when the notches in the two rings line up and pass one another (as the rings rotate), a glowing light flashes on, and, over five or so frames, eases off. The rings will be rotating back and forth sporadically causing the light to be constantly flashing on and easing off.
I have no problem figuring out how to turn the light on, but easing it off over time is not so simple.
I'm hoping I made this clear enough.
Thanks for any help.
I have two half rings, one smaller and inside the other. Both have a notch in them. Both are attached to a slider control such that when adjusted, they both rotate (simultaneously) in opposite directions.
What I need to accomplish is: when the notches in the two rings line up and pass one another (as the rings rotate), a glowing light flashes on, and, over five or so frames, eases off. The rings will be rotating back and forth sporadically causing the light to be constantly flashing on and easing off.
I have no problem figuring out how to turn the light on, but easing it off over time is not so simple.
I'm hoping I made this clear enough.
Thanks for any help.