I am trying to put together a video of leaves falling off of a dying tree. The leaves all fall at a random time whose range is determined by sliders. The position is changed by a "transform" effect, whose code is pasted below.
What I want to do is to make it so after the leaves start falling, they fade out over the course of five seconds. I've been trying to trigger the fade based on whether the position has fallen 60 below what it originally was, using the code:
f = effect("Transform")("Position") - thisLayer.transform.position;
I know that f crossing 60 needs to trigger the fade, but I haven't gotten any farther than that.