Sound effects

This commit is contained in:
Felipe M 2021-05-23 00:38:30 +02:00
parent 6ea21b3181
commit 6671b455c4
Signed by: fmartingr
GPG key ID: 716BC147715E716F
17 changed files with 94 additions and 6 deletions

View file

@ -14,6 +14,7 @@ func _on_Hurtbox_hit(damage):
stats.health -= damage
func _on_EnemyStats_enemy_died():
SoundFx.play_fx("EnemyDie", 1, -20)
Utils.instance_scene_on_main(EnemyDeathEffect, global_position)
queue_free()
emit_signal("died")