expression for: the further actor 1 is, the more opacity actor 2 has (actor 1's shadow)
ive been messing with this and cant get it right. basically i have an actor. he has a shadow under him. ok?
when he jumps, the shadow gets less visible (gradually, not instantly) and as he comes back to the ground, the shadows gradually appears back.
i did a WORKAROUND on this with Elastik (for those of you who had played it, take a look at it...), but i think it would be better if it used some kind of formula using magnitude perhaps? any ideas? i'm sure theres away
when he jumps, the shadow gets less visible (gradually, not instantly) and as he comes back to the ground, the shadows gradually appears back.
i did a WORKAROUND on this with Elastik (for those of you who had played it, take a look at it...), but i think it would be better if it used some kind of formula using magnitude perhaps? any ideas? i'm sure theres away
![:p :p](http://forums.gamesalad.com/plugins/emojiextender/emoji/twitter/tongue.png)
Comments
The 1000 values are the max possible height of the RisingActor in my game. The subtraction of .3 was just because I wanted the alpha value to go from .7 to 0 instead of from 1 to 0.
Hope that's helpful!
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User