X-Git-Url: http://git.purplebirdman.com/mushroom-game.git/blobdiff_plain/5a21298c3ff31c639d9bb73c45e138441359e889..HEAD:/player/player.gd diff --git a/player/player.gd b/player/player.gd index fdaf988..21a930b 100644 --- a/player/player.gd +++ b/player/player.gd @@ -2,14 +2,14 @@ extends CharacterBody3D const SPEED = 5.0 -const CAMERA_ROTATE_RATE = PI / 12 +const CAMERA_ROTATE_RATE = PI / 6 # rotate camera func _unhandled_input(event: InputEvent) -> void: - if event.is_action("camera-rotate-left"): + if event.is_action_pressed("camera-rotate-left"): $cameraPivot.rotate_y(CAMERA_ROTATE_RATE) - elif event.is_action("camera-rotate-right"): + elif event.is_action_pressed("camera-rotate-right"): $cameraPivot.rotate_y(-CAMERA_ROTATE_RATE)