From 00ea617f39c462c01e5a70cd1f91cc87f7f6afa4 Mon Sep 17 00:00:00 2001 From: leca Date: Wed, 21 Feb 2024 03:25:10 +0300 Subject: [PATCH] Spectator now captures mouse --- scripts/SpectatorControls.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/SpectatorControls.gd b/scripts/SpectatorControls.gd index 08ea335..d51887e 100644 --- a/scripts/SpectatorControls.gd +++ b/scripts/SpectatorControls.gd @@ -7,6 +7,7 @@ var walk = 2 func _ready(): camera.make_current() + Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED) func _unhandled_input(event): if Input.is_action_pressed("MWU"): @@ -29,7 +30,6 @@ func _physics_process(delta): var velocity = Vector3.ZERO var speed - if Input.is_action_pressed("run"): speed = walk * 2 else: