From 7e579ced0b51f98b2c14a0c868bf428c12d4790b Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 28 Dec 2023 09:41:25 +0100 Subject: add puppet animation and set transparency --- Characters/Character.gd | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Characters/Character.gd') 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(): -- cgit v1.2.3