change color NEED HELP
6 posts • Page 1 of 1
change color NEED HELP
i know how to make it so that the color of an object changes all at once by using e.other.color. but how do you make it so that the amount of a color (for example, transparency) doesn't change all at once but only certain amounts are added. i know i am wording this horribly so i will give an example, first the object is transparent, then after a collision it is a little less transparent then after another collision it is even less transparent. this has been done but i can't find it in the forums and studying the scripts confuses me. please help me.
canadian joe wrote:im just writing this so i can sig it
RicH wrote:Phun's Army.
-

canadian joe - Posts: 115
- Joined: Wed Feb 10, 2010 9:42 pm
Re: change color NEED HELP
viewtopic.php?f=13&t=411 Read it.
TheWinkits wrote:They both looks of cuking amazing
-

Chronos - [Most Active Member 2010]
- Posts: 4457
- Joined: Mon Aug 31, 2009 6:00 pm
- Location: Californania
Re: change color NEED HELP
(e)=>{color=color+[0,0,0,0.1]}
- Mr_Stabby
- Posts: 155
- Joined: Wed Dec 16, 2009 12:16 am
Re: change color NEED HELP
cool, thanks people. also, how do you set it so that when the variable is depleted any other collidescripts stop? like if the color runs out, it would stop spawning circles.
canadian joe wrote:im just writing this so i can sig it
RicH wrote:Phun's Army.
-

canadian joe - Posts: 115
- Joined: Wed Feb 10, 2010 9:42 pm
Re: change color NEED HELP
you could make an if statement to either change the oncollide property of the object or to ignore the contents of oncollide. First one would be more efficient due to no collide script while other still runs through the if statement each time but the second one would also be significantly more stable due to the buggy nature of changing thyme with thyme
- Mr_Stabby
- Posts: 155
- Joined: Wed Dec 16, 2009 12:16 am
Re: change color NEED HELP
thanks 
canadian joe wrote:im just writing this so i can sig it
RicH wrote:Phun's Army.
-

canadian joe - Posts: 115
- Joined: Wed Feb 10, 2010 9:42 pm
6 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests



