// Create a kind of pulsing in-and-out animation
animate(object, alpha = 0)
animate(object, alpha = 255, time = 10, loop=-1)
animate(alpha = 0, time = 10)
Problem description:
The above code works, and indeed applies the alpha to all of the object's overlays, which is a very good thing. However, I'm wondering if there's some way to selectively animate overlays instead, or perhaps blacklist certain overlays from being affected by at least the alpha variable.
For example, if there's a certain mob that's using the above animation, and if clicking a mob makes it have an underlay/overlay which indicates the mob is targetted, how would you avoid applying the alpha channel modification to that specific overlay or underlay?