summaryrefslogtreecommitdiff
path: root/Characters/Character.gd
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2023-12-28 08:48:41 +0100
committerDaniel Weipert <git@mail.dweipert.de>2023-12-28 08:48:41 +0100
commit2a9cbb1fa0268c3be828c0d872180282704abb61 (patch)
tree4d2a9f805af004a7b960e7918b5d34ddfed7f2c8 /Characters/Character.gd
parent2a5d745c68f11131fb1b27ec42a30ecd6dc5da1d (diff)
show other player puppetsv2.2.0
Diffstat (limited to 'Characters/Character.gd')
-rw-r--r--Characters/Character.gd4
1 files changed, 4 insertions, 0 deletions
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():