Here's what I want to do:
When the mouse is pressed (on mouseDown), set sprite.BlendLevel to a value (I know how to do this).
When the mouse is lifted, begin a timer. If the mouse has not been pressed after 30 seconds, the sprite.BlendLevel value changes.
(I want this timer to reset every time the mouse enters a mouseUp state. HOWEVER, it should not reset every frame update - ONLY when the mouse is first lifted.)
Basically, I'm making it so a touch screen app fades if it hasn't been touched for 30 seconds (with just one big sprite overlaying it at varying blend levels). That's all.
I can't wrap my mind around timers, so that's why I'm having problems with figuring this out.
Thanks for any help you can offer. I truly appreciate it. I feel like there aren't enough people out there working with Director anymore, so finding help like this is valuable.
Type this in your Message window, and then press Enter:
Is that the sort of thing that you are looking for? It's currently set to trigger after 5 seconds, but you could use...
the timeOutLength = 1800
... in line 13 of the Fade Behavior, to make it wait 30 seconds (1800 = 30 seconds * 60 ticks/second) before it triggers.
Perfect! I've edited the timeout length and blend level to my needs. Thank you SO much for your help!