move to apply_input_velocity on the subject
This commit is contained in:
+4
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user