Tewam spawner

This commit is contained in:
Rendo 2025-11-27 11:02:42 +05:00
commit 2bfbfa5089
8 changed files with 126 additions and 67 deletions

View file

@ -12,15 +12,11 @@ var compensation_speed: float
@export var compensation_time: float = 1.0
@export var compensation_delay: float = 0.5
func _enter_tree() -> void:
set_multiplayer_authority(get_parent().name.to_int())
func _ready() -> void:
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
# Move to level controller when possible
#Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
if not is_multiplayer_authority():
return
# Move to level controller when possible
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
current = true
func _process(delta: float) -> void: