gyroscopeI am here.Member, Sous Chef, PROPosts: 6,598
Hi dreamZ; that's straighforward enough: use an Interpolate behavior, set the fade time you want there in Duration, and where it says Interpolate attribute, put your actor's self.Color.Alpha there. Set To: to 0.
timer -> every 0.01 sec.-> change attribute "self.Color.Alpha" to "self.Color.Alpha-x"
x is the speed it fades out
No offense. but this is bad advice. Interpolate self.color is far superior to using a timer. Timers can become processor heavy and should only be used when absolutely necessary and when you can't interpolate an attribute. Also, interpolate cannot be interupted, so once it starts it goes until it's finished. So if you want to do something like change an actors color until the player touches it or does something, THEN (and only then) should you use a timer in lieu of Interpolate.
i just gave it a test: interpolate actually overrules other parameters. so if a actor should die on collision it finishes interpolation first and than dies. so a timer is more flexible towards other paramerters
but i think that´s what you meant in your last post anyway
Comments
----------------------------------------------
http://davidgriffinapps.co.uk/
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
timer -> every 0.01 sec.-> change attribute "self.Color.Alpha" to "self.Color.Alpha-x"
x is the speed it fades out
thanks i didn´t know that.
i just gave it a test: interpolate actually overrules other parameters. so if a actor should die on collision it finishes interpolation first and than dies. so a timer is more flexible towards other paramerters
but i think that´s what you meant in your last post anyway