- Home /
My game controls Doesn't work on certain PC
Hi !
I have a problem with the controls of my game. On certains PC, the controls of the player won't work. It's working well on the PC that I use to develop my game. Both in the Unity Editor and from the exported executable. But on other PC, the player just don't move at all (or he is like stuck in something).
I use both Keyboard and Gamepad Controller input from the Input Manager system of Unity.
Here is the code I use to move the player :
if(Input.GetAxis("Horizontal") != 0){ Vector2 localVelocity; localVelocity = transform.InverseTransformDirection(RB2D.velocity); localVelocity.x = Input.GetAxis("Horizontal") * Time.deltaTime * PlayerSpeed * 100 * CalcularAngularSpeedLimitation(); RB2D.velocity=transform.TransformDirection(localVelocity); anim.SetBool("PlayerMoving", true); }
I don't know what is going on. Does someone already had this issue ? You can download the game here if you want to test something : https://artfx-school.itch.io/the-forgotten
Thank you for your help !
is it also not working if you build it on the editor where it works fine, and then test it on the pc where it does not work?
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
AI movement bug ("teleporting" after certain Platforms) 0 Answers
Enemy controller.move script slows down and speeds up. How to get it consistent? 0 Answers
How do I stop the player from gliding while in the air? 1 Answer
My Character is unable to move since booting up Unity this morning, worked fine last night 0 Answers