Godot Version
4.7.1
Question
I have got both controller and keyboard configured in the Input map,
This works, exactly as it is in single player, no problem what soever. When it comes to multiplayer, only keyboard works, but not controller. Which is weird because both are under the same Inputs.
For instance about what I am doing, so you have a better understanding:
func _physics_process(delta: float) -> void:
if not is_multiplayer_authority():
return
#print(current_state)
if current_state:
current_state.physics_update(delta)
This runs on state machine, and physics_update called from states. For example on Idle state:
func physics_update(_delta: float) -> void:
if Input.is_action_pressed("move_back") or Input.is_action_pressed("move_front") or Input.is_action_pressed("move_left") or Input.is_action_pressed("move_right"):
state_machine.changed_state("walk_run")
if Input.is_action_pressed("crouch"):
state_machine.changed_state("crouch")
if Input.is_action_pressed("jump"):
state_machine.changed_state("jump")
player_character.move_and_slide()
This exact setup works on singleplayer, but not in multiplayer
