From 26b2a313ca263fa51fbc283282a79545578c0dbd Mon Sep 17 00:00:00 2001 From: Adonis Stavridis <adonis-ioannis.stavridis@etu.unistra.fr> Date: Thu, 26 Mar 2020 14:04:41 +0100 Subject: [PATCH] #112 fix z axis movement --- server/entities/characters/player.gd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/entities/characters/player.gd b/server/entities/characters/player.gd index fd33085..0396cf6 100644 --- a/server/entities/characters/player.gd +++ b/server/entities/characters/player.gd @@ -225,7 +225,9 @@ func processMovement(delta:float): # Send the position of the player func broadcastMovement(): - rpc("getRemoteMovement", self.get_translation()) + var position = self.get_translation() + position.z = 0 + rpc("getRemoteMovement", position) # Check and trigger the type of attack requested -- GitLab