func _ready() -> void:
if not is_multiplayer_authority():
$Camera2D.enabled = false
func get_input():
var input_direction = Input.get_vector("ui_left", "ui_right", "ui_up", "ui_down")
print(input_direction)
$Marker2D.rotation = rad_to_deg(input_direction.angle())
velocity = input_direction * speed
func _physics_process(delta):
if not is_multiplayer_authority():
return
get_input()
move_and_slide()
This is the input_vector when I press ui_right only and I don't understand how to debug this issue
(0.0, 0.0)
(0.0, 0.0)
(0.0, 0.0)
(0.999968, 0.007965)
(1.0, 0.0)
(0.999968, 0.007965)
(0.0, 0.0)
(0.0, 0.0)
(0.999968, 0.007965)