- Home /
arcade racing game time limit with time extensions
I am making a low poly arcade racer and i need a script that allows me to add a time limit to the game and extend the timer when a checkpoint is passed? how would I achieve this ?
Answer by Skyunarankage · Feb 28, 2018 at 11:26 PM
You could place collision detection script and when your car passes by it, collides with the object. Checks the object and adds time to the time value. Every second you should take your time value and remove time.deltatime from it's value as an update
Search on collision detection unity on Google. Then to make sure your time is visible you could change a UI text gameobject to have the string corresponding to your time left visible on the screen. To do that out a canvas and just add a text game object in it .:)
If more questions relating to my exact answer I can write it when I wake up tomorrow
Your answer
Follow this Question
Related Questions
How to make a timer read to the .001 of a second 2 Answers
how to record best times on my racing game 1 Answer
Fade in AudioLister over time #c 1 Answer
slow a lerp ? array/static problem 1 Answer
Move a keyframe in time only 1 Answer