summaryrefslogtreecommitdiff
path: root/Scenes/ScoreParticle.gd
diff options
context:
space:
mode:
authorHenrique Alves <henriquelalves@gmail.com>2022-07-17 12:25:39 -0300
committerHenrique Alves <henriquelalves@gmail.com>2022-07-17 12:25:39 -0300
commit06ea6608202adbcbc372e6c28065b022485563f2 (patch)
tree6b7a14cc66f6c979075219f869dfee85fe371450 /Scenes/ScoreParticle.gd
parentf81104c60ecff4a7810501bbac9828bec12d74cc (diff)
downloadgamejam-gmtk-2022-06ea6608202adbcbc372e6c28065b022485563f2.tar.gz
gamejam-gmtk-2022-06ea6608202adbcbc372e6c28065b022485563f2.tar.bz2
gamejam-gmtk-2022-06ea6608202adbcbc372e6c28065b022485563f2.zip
Add sfx
Diffstat (limited to 'Scenes/ScoreParticle.gd')
-rw-r--r--Scenes/ScoreParticle.gd3
1 files changed, 3 insertions, 0 deletions
diff --git a/Scenes/ScoreParticle.gd b/Scenes/ScoreParticle.gd
index 51a23f5..5deb893 100644
--- a/Scenes/ScoreParticle.gd
+++ b/Scenes/ScoreParticle.gd
@@ -16,3 +16,6 @@ func animate():
animation_player.add_animation("Animate", anim)
animation_player.play("Animate")
+
+ yield(animation_player, "animation_finished")
+ $AudioStreamPlayer.play()