move to apply_input_velocity on the subject

This commit is contained in:
2025-02-23 18:25:57 +09:00
parent ca63d4594c
commit 151a757e3e
13 changed files with 142 additions and 62 deletions
+4 -1
View File
@@ -15,7 +15,10 @@ func spawn_player(player_id: int, runner: bool) -> void:
player.player_id = player_id
player.name = str(player_id)
_runners_node.add_child(player) if runner else _chasers_node.add_child(player)
if runner:
_runners_node.add_child(player)
else:
_chasers_node.add_child(player)
func despawn_player(player_id: int) -> void:
if not multiplayer.is_server(): return