From 2a9cbb1fa0268c3be828c0d872180282704abb61 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 28 Dec 2023 08:48:41 +0100 Subject: show other player puppets --- Characters/Character.gd | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Characters/Character.gd') diff --git a/Characters/Character.gd b/Characters/Character.gd index fc33096..ee10c0e 100644 --- a/Characters/Character.gd +++ b/Characters/Character.gd @@ -111,6 +111,10 @@ func _physics_process(delta): velocity = velocity.lerp(Vector2(0, velocity.y), 0.7) move_and_slide() + + if Network.player.position != self.position: + Network.player.position = self.position + Network.update_player() func is_running(): -- cgit v1.2.3