|
in my game if you touch a certain object you change color. however my character has three body parts along a vertical axis so i want that it my head only touches and my character backes off my other parts change color a 0.5 seconds after the head. my color changing script: function OnTriggerEnter(hit : Collider) { if(hit.tag == "iceactivator")
{
renderer.material.color = Color.blue;
//i think it would go in here }
(comments are locked)
|
|
http://unity3d.com/support/documentation/ScriptReference/MonoBehaviour.html check the function Invoke() and the coroutines stuff(http://unity3d.com/support/documentation/ScriptReference/index.Coroutines_26_Yield.html)for this kinda stuff. Also iTween(http://itween.pixelplacement.com/index.php) comes to mind. Look for ColorTo ColorFrom and maybe ColorUpdate or similar functions starting with Fade to alter the alpha value of your gameobjects. thanks! the second link worked.
Aug 17 '10 at 11:51 AM
john 2
(comments are locked)
|
