Diartos

Input.get_axis() instead of Input.get_action_strength()

Since Godot 3.4, we can use Input.get_axis("move_right", "move_leftt"). It returns the same thing than Input.get_action_strength("move_right") - Input.get_action_strength("move_left").

You can check this here : https://docs.godotengine.org/en/stable/tutorials/inputs/controllers_gamepads_joysticks.html#which-input-singleton-method-should-i-use

  • Nathan Lovato replied

    Thanks for sharing this tip!