improve projectile trail and player attack
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user