Skip to main content
1 of 9
user6668201
  • 158
  • 3
  • 21

Unity InputManager bool instead of float?

I had a problem playing with the Input Manager , where example :

Horizontal (+) is pressed , its increase it's value but , when Horizontal (-) , the horizontal value is still positive for " a little of time " which causing character still doing right animations ( and still moving right ) instead of left animations .

I also have used Input.GetKey() , but that's mean player cannot change the setting from the game launcher ( and i don't want to create player setting in-game for now ) .

The problem is come when i cannot create new input , only duplicate then edit from the available one ( which is was float ) , what i try to mean is if player is pressed Horizontal (+) then press Horizontal (-) , its will instantly turn left ( which in float there's a delay ) .

EDIT : improved formatting

user6668201
  • 158
  • 3
  • 21