fix: player attack logic; add sfx to the player attack;
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user