fix: player attack logic; add sfx to the player attack;

This commit is contained in:
2026-09-24 23:20:06 +02:00
parent 9c294d1394
commit 3a7f3c7ec3
4 changed files with 24 additions and 12 deletions
+4 -1
View File
@@ -29,7 +29,10 @@ func animate_slime():
$AnimatedSprite2D.play("move_down")
elif normal_velocity.y < -0.707:
$AnimatedSprite2D.play("move_up")
func take_damage():
pass
func _on_player_detect_area_body_entered(body):
if body is Player:
target = body