From e09462b42492519377d3894f46b59a71aa69a17f Mon Sep 17 00:00:00 2001 From: Luna Brovchuk Date: Tue, 3 Oct 2023 00:53:06 +0200 Subject: [PATCH] Fix Bat Sounds' Volume --- src/models/enemies/bat/Bat.tscn | 4 +++- src/models/player/player.gd | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/models/enemies/bat/Bat.tscn b/src/models/enemies/bat/Bat.tscn index f5ef64e..a2e77eb 100644 --- a/src/models/enemies/bat/Bat.tscn +++ b/src/models/enemies/bat/Bat.tscn @@ -22,7 +22,7 @@ script = ExtResource( 2 ) use_parent_material = true frames = ExtResource( 1 ) animation = "idle" -frame = 2 +frame = 1 playing = true centered = false @@ -43,6 +43,8 @@ texture = ExtResource( 3 ) [node name="AudioDamage" type="AudioStreamPlayer" parent="."] stream = ExtResource( 4 ) +volume_db = -15.0 [node name="AudioScream" type="AudioStreamPlayer" parent="."] stream = ExtResource( 5 ) +volume_db = -15.0 diff --git a/src/models/player/player.gd b/src/models/player/player.gd index 9fac3f5..94bcf49 100644 --- a/src/models/player/player.gd +++ b/src/models/player/player.gd @@ -203,7 +203,7 @@ func _physics_process(delta): $Sprite.playing = true invincibility_timer += delta - if not stunned: + if not stunned and target != null: if recharge_timer <= get_recharge(): recharge_timer += delta if not $AudioCast.playing: