- Home /
How to add waypoints/ timers for a car game!
Hey, I recently got into unity and need to make some sort of a game for a school project. I was going for a racing kinda game where you have to go through gates in order to gain time or you run out and lose. I got the car, road, terrain and all that but have no idea how to get the waypoints/ put a timer on and "lose" the game. Help would be VERY much appreciated!!!!
Answer by Berenger · Feb 28, 2014 at 08:45 AM
Unity just released a new standard assets package, which has a car following a path, you could try to take a look at it. https://www.assetstore.unity3d.com/#/content/14474.
Or, if you're not talking about AI, then you'll have to work with triggers for the waypoints and a float decrementing in a coroutine or an Update function. Once it reaches 0, time's up !
Your answer
Follow this Question
Related Questions
The timer starts after a collision with an object 1 Answer
The player's car following a certain path 1 Answer
City traffic Lanes 3 Answers
How to setup car positioning with lots of routes? 0 Answers
respawn vehicle when goes away of road. 0 Answers