- Home /
get input slowly.
i have Var Input; which changes to 1 when i click right arrow and to -1 when i click left arrow, So it changes immediately when i click it and i want to change it from 0 to 1 (or -1) during for example 3 seconds. pls help...
Can you provide a better explanation? An example of how you're currently doing this? I think you might be trying to click and hold a button to slowly move it towards 1 or -1.
i have a car and when i click to right arrow and left arrow SteerInput changes immediately and i want it to change time. thats all
Ins$$anonymous$$d of using Input.GetButton("left")and Input.GetButton("right"), use Input.GetAxis("Horizontal"). Look at HannesR's answer if you want to tweak values like: sensitivity, gravity etc.
Your answer
![](https://koobas.hobune.stream/wayback/20220613101237im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Why do i get 4 errors here? (Javascript) 1 Answer
Make gameobject appear on collision 1 Answer
Trying to get my wall Jump to Work 1 Answer
Is it the same javascript 1 Answer