diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2023-12-28 08:48:41 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2023-12-28 08:48:41 +0100 |
commit | 2a9cbb1fa0268c3be828c0d872180282704abb61 (patch) | |
tree | 4d2a9f805af004a7b960e7918b5d34ddfed7f2c8 /Characters | |
parent | 2a5d745c68f11131fb1b27ec42a30ecd6dc5da1d (diff) |
show other player puppetsv2.2.0
Diffstat (limited to 'Characters')
-rw-r--r-- | Characters/Character.gd | 4 |
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(): |