various fixes

This commit is contained in:
Persephone Bubblegum-Holiday 2025-08-12 21:55:43 -07:00
parent dd95736165
commit abefcb6b5c
3 changed files with 32 additions and 32 deletions

View file

@ -38,6 +38,8 @@ var jump_vel: Vector3 # Jumping velocity
func _ready() -> void:
capture_mouse()
if ($Camera.fov != Globalvariables.FOV):
$Camera.fov = Globalvariables.FOV
func _unhandled_input(event: InputEvent) -> void:
if (interact):
@ -63,10 +65,6 @@ func _unhandled_input(event: InputEvent) -> void:
elif event.is_action_pressed(&"freeroam_debug_menu"):
$DebugMenu.visible = !$DebugMenu.visible
func _process(delta: float) -> void:
if ($Camera.fov != Globalvariables.FOV):
$Camera.fov = Globalvariables.FOV
func _physics_process(delta: float) -> void:
if (interact):
if Input.is_action_just_pressed(&"freeroam_jump"): jumping = true