- Home /
Why my character moves left when i press right key ? Controls are upside down?
my character moves left when i press right and moves back if i press forward key like all the controls are upside down
i have attached the SS of the script
[1]: /storage/temp/145591-code.png
Please, edit your question, copy-paste your code in the question and format it using the 101010
button.
Is moveSpeed
greater than 0 in the inspector?
Are you sure, when your character stands still, its +Z vector (blue) is looking in the correct direction? (forward)
Answer by noobgamemake · Sep 02, 2019 at 03:10 PM
I think you can put a Negative number in the speed
Answer by Dan34523 · Sep 02, 2019 at 05:33 PM
You can either put a negative number for your speed or you can go into Edit>Project Settings>Input and then go into your vertical and horizontal axes and check Invert
This should then fix your problem
It was not in Invert but i changed to Invert , now the character moves correctly , thanks
Your answer
Follow this Question
Related Questions
Resetting rotation with Quaternion.Euler 1 Answer
Distribute terrain in zones 3 Answers
Stamina, Delay C# Script 1 Answer
How to hold objects in third person? 1 Answer