improve projectile trail and player attack

This commit is contained in:
2025-09-17 00:43:38 +10:00
parent 7474427c86
commit 7ba9a7625a
5 changed files with 18 additions and 8 deletions

View File

@@ -41,7 +41,6 @@ func _ready() -> void:
_set_collision_size(attack_radius)
func _process(delta: float) -> void:
if _cooldown_timer > 0:
_cooldown_timer -= delta
@@ -137,6 +136,7 @@ func _hit_projectile(projectile: Projectile) -> void:
)
projectile.hit(new_direction * _hit_projectile_speed)
_queue_hit_stop = true
did_hit.emit()
break
prev_dir_angle = dir_angle
@@ -158,4 +158,3 @@ func _on_area_entered(node: Node3D) -> void:
if node is Projectile:
_hit_projectile(node as Projectile)
did_hit.emit()