Need help with nitro boost for car
Hi! Im currently using the basic car resource (the sky-car or whatever it's called). I need help so when I press a button, the car will go faster. If possible I would also like some kind of cooldown or bar/meter that tells when it can be used again. I am really new to Unity and I don't understand much so sorry if I don't understand. I have been using this tutorial by Jimmy Vegas for making everything so far. Thanks for all the help you can give me!
Answer by Vipertex13 · Apr 05, 2020 at 01:34 AM
@Ojxblock To add a boost to your car I made this code
public float motorForce = 100;
if (Input.GetKey(KeyCode.LeftShift)) { motorForce += Time.deltaTime * 100 ; } else { motorForce = 100; } } When Left Shift is pressed then it will multiple the motor force
Answer by Cuttlas-U · Mar 01, 2018 at 08:53 AM
hey;
no one will help u this way ;
the problem is u are looking at all the things at once ;
always try to split the things u want and ask them seperatly;
specially if u are a begginer ;
in your case u first need to learn player input then change variable "like speed" based on it and cause the speed should go smooth u need to learn using Timer or Corutine ;
after that u need to learn the UI system and connect this variable to a UI with a timer;
so your question is made of many parts;
if u need any help Install "Any Desk" app and send your id to my gmail so i can connect to your system and help u :
good luck ;
Your answer
![](https://koobas.hobune.stream/wayback/20220612153634im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
About Car Physics 0 Answers
Randomation Vehicle Physics 2.0 HELP 1 Answer
Unity Standard Vehicle Car Asset Boostspeed Car 0 Answers
Stopping the car audio when im not in the car 1 Answer
Using Car Prefab to make custom vehicle? 0 Answers