small racing game im working on
Diffstat (limited to 'classes/human_car.gd')
| -rw-r--r-- | classes/human_car.gd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/human_car.gd b/classes/human_car.gd index 3376ad2..335b604 100644 --- a/classes/human_car.gd +++ b/classes/human_car.gd @@ -9,11 +9,11 @@ static func attach(to: PackedScene) -> HumanCar: func _physics_process(delta: float) -> void: throttle = Input.get_action_strength("accel") brake = Input.get_action_strength("brake") * MAX_BRAKE_FORCE - steer(Input.get_axis("ui_left", "ui_right")) + steer(Input.get_axis("left", "right")) super(delta) func shift_up(): return Input.is_action_just_pressed("shift_up") func shift_down(): - return Input.is_action_just_pressed("shift_down")
\ No newline at end of file + return Input.is_action_just_pressed("shift_down") |