forked from team-sg/hero-mark-2
bullet casing sound
This commit is contained in:
parent
940a03acec
commit
f7c60470a2
7 changed files with 53 additions and 3 deletions
12
objects/enemy/bullet_casing.gd
Normal file
12
objects/enemy/bullet_casing.gd
Normal file
|
@ -0,0 +1,12 @@
|
|||
extends RigidBody2D
|
||||
|
||||
|
||||
var has_played_sound = false
|
||||
|
||||
|
||||
|
||||
func _on_BoneParticle_body_entered(body):
|
||||
if !has_played_sound:
|
||||
Audio.play_sound(Audio.a_bullet_casing, Audio.ac_climb)
|
||||
has_played_sound = true
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue