From 27ed3885015b7c509c90bae4e9022de81d68f518 Mon Sep 17 00:00:00 2001 From: Raxki Date: Sun, 27 Oct 2024 15:52:07 -0400 Subject: [PATCH] Fix projectile shots facing backward vertically --- Scripts/linear_projectile.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/linear_projectile.gd b/Scripts/linear_projectile.gd index 561e2bd..088f496 100644 --- a/Scripts/linear_projectile.gd +++ b/Scripts/linear_projectile.gd @@ -12,7 +12,7 @@ signal collided_with_area(other: Area2D, power: int, direction: Vector2) func _ready(): flip_h = sign(direction.x) < 0 - flip_v = sign(direction.y) < 0 + flip_v = sign(direction.y) > 0 if abs(direction.dot(Vector2.RIGHT)) == 0.0: # Vertical self.play(&"vertical")