|
Hi Everyone Can anyone help me with this problem please. I've got this scenario where a game object move forwards and after 26 seconds it respawns back to its original position. Now directly opposite this first game object is a second game object that does the same thing as the first game object. The only problem I have is I want them to take turns moving forward and respawning. So the first one moves forward then respawns & stops moving. The second one then moves forward, respawns & stops moving allowing the first one to move forward. You get the picture the only other thing that I would like to add would be that is would have to be continuous cycle. Here's my code so far: Help much appreciated. Thanks
(comments are locked)
|
|
Heres a method you could consider about using. Feel free modifying it the way you want. comment if you have any questions or problems var respawnTime : float = 26.0; var firstObjectEnabled = true; function Update(){ }
(comments are locked)
|

When posting code, please format it with the 1010101 button and use proper indentation.
You need an external master code to handle the switching.