Fix Bat Sounds' Volume

main
Luna Brovchuk 2023-10-03 00:53:06 +02:00
parent c20248f972
commit e09462b424
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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: