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!
@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
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 ;