You could set the verticalInput to 1 when you click on the up button, and -1 for the down button. Do the same for the horizontals and it should work. Thanks for your reply!
I have an issue when i add = joystick.Horizontal; =joystick.vertical; I get error in unity Null reference expection: object reference not set to an instance of an object carController.getinput ()
Assets\CarController.cs(27,12): error CS0246: The type or namespace name 'Joystick' could not be found (are you missing a using directive or an assembly reference?)
Obrigado, meu visual Studio não está integrado, tive que atribuir manualmente o joystick a variável Joystick depois de escrever o código, igual foi feito no vídeo passado pras rodas e colisores, agora está funcionando.
Nice video, new sub. Do you know how to implement the horizontal movement/axis using buttons instead of a joystick?
You could set the verticalInput to 1 when you click on the up button, and -1 for the down button. Do the same for the horizontals and it should work. Thanks for your reply!
Thank you for watching and feel free to ask me anything you want
Nice dude, but wait, you forgot about brake control
Thank you so much for this tutorial it help me while working on a commercial projects.
how can i add break button as well
Greate work. THANK YOU ❤
excelente tutorial, gracias
Im subscribing i watched a few of your videos im loving them 😊
😡🤬🤬🤬🤬😤
I have an issue when i add
= joystick.Horizontal;
=joystick.vertical;
I get error in unity
Null reference expection: object reference not set to an instance of an object carController.getinput ()
same
= Joystick.Horisontal;
Same
What's going on here?
@@SigmaLigmaChannel
um bro i think youre late
What if i want to do it using gyro or accelerometer on mobiles
?
Assets\CarController.cs(27,12): error CS0246: The type or namespace name 'Joystick' could not be found (are you missing a using directive or an assembly reference?)
Thanks Dude
Your welcome!
Obrigado, meu visual Studio não está integrado, tive que atribuir manualmente o joystick a variável Joystick depois de escrever o código, igual foi feito no vídeo passado pras rodas e colisores, agora está funcionando.
Hello master
I will be waiting with the codes of speedometer construction
I'm sorry, I probably won't be making that any time soon. I wish you the best of luck with your car game though!😄
the breaking with the joystick is not working any ideas
It says object not set to an instance
You need to drag your joystick from canvas object and put it on the "Joystick" tab of your Car Controller's Script
Don't listen to this guy ☝️😐
@@SigmaLigmaChannelBit late 😂
plz script
What script?