fix player hud doubling

This commit is contained in:
Gary Steven Keough 2024-12-28 23:26:02 -05:00
parent 0f94338b37
commit cb8da7c59e
3 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,8 @@ var steam_id: int = 0
@export var player_avatar_face: Sprite3D @export var player_avatar_face: Sprite3D
@export var body: MeshInstance3D @export var body: MeshInstance3D
@export var head: MeshInstance3D @export var head: MeshInstance3D
@export var player_hud: CanvasLayer
var jumping: bool = false var jumping: bool = false
var is_using_joystick: bool = false var is_using_joystick: bool = false
@ -54,6 +56,8 @@ func _ready() -> void:
head.hide() head.hide()
player_avatar_face.hide() player_avatar_face.hide()
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
else:
player_hud.hide()
func _input(event): func _input(event):

Binary file not shown.