summaryrefslogtreecommitdiff
path: root/Characters/Character.gd
diff options
context:
space:
mode:
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():