summaryrefslogtreecommitdiff
path: root/Characters/Character.gd
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2023-12-28 09:41:25 +0100
committerDaniel Weipert <git@mail.dweipert.de>2023-12-28 09:41:25 +0100
commit7e579ced0b51f98b2c14a0c868bf428c12d4790b (patch)
treee9786b6e2e3fe560c648d542a62e5de350f0e3e3 /Characters/Character.gd
parent2a9cbb1fa0268c3be828c0d872180282704abb61 (diff)
add puppet animation and set transparencyv2.2.1
Diffstat (limited to 'Characters/Character.gd')
-rw-r--r--Characters/Character.gd6
1 files changed, 6 insertions, 0 deletions
diff --git a/Characters/Character.gd b/Characters/Character.gd
index ee10c0e..c9eaa0a 100644
--- a/Characters/Character.gd
+++ b/Characters/Character.gd
@@ -115,6 +115,12 @@ func _physics_process(delta):
if Network.player.position != self.position:
Network.player.position = self.position
Network.update_player()
+ if Network.player.animation != $Sprite2D.animation:
+ Network.player.animation = $Sprite2D.animation
+ Network.update_player()
+ if Network.player.animation_flip_h != $Sprite2D.flip_h:
+ Network.player.animation_flip_h = $Sprite2D.flip_h
+ Network.update_player()
func is_running():