From 8a433873f5e2a38fd1a2ce7f8a3555397a55f33a Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 12 Jul 2020 14:52:36 +0200 Subject: [PATCH] Fix facing during movement. --- game/player/Body.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/player/Body.gd b/game/player/Body.gd index df1773f..d3b0af6 100644 --- a/game/player/Body.gd +++ b/game/player/Body.gd @@ -197,7 +197,7 @@ func process_input(delta: float) -> void: if input_length > 0.1: #handle_graphic_facing(abs(dir.dot(Vector2(0, 1))) > 0.9) - character_skeleton.update_facing(dir) + character_skeleton.update_facing(input_dir) character_skeleton.get_animation_tree().set("parameters/walking/blend_amount", input_dir.length())