Need help, the speed stacks if I press left/up, right/up, left/down or right/down.
I am trying to make that the ball deaccelerates when you don't press the button, and it works, but if I press left/right with the combination of up/down the ball reaches high speed. I don't know what to do.
And here's the movement:
If someone could lead me to where the problem is and help me it would be amazing.
Answer by unity_EEHU-BnWOgm7Tg · Feb 24, 2018 at 05:32 PM
Finallly I fixed it making 2 more variables, similar to speed and MaxSpeed, but only for vertical movement. (SpeedV and MaxSpeedV)
I know this way of fixing is very troublematic, so if there is a way more simple and efficient please let me know.
Your answer
Follow this Question
Related Questions
C# movement code with the maximum movement speed. 1 Answer
Resetting the float value after a button is released 0 Answers
How to make sphere a cricket ball? 1 Answer
Jump is higher then normal 0 Answers
How To Move A Ball Using Touch Input? 0 Answers