summaryrefslogtreecommitdiff
path: root/Towers/placement_particles.gd
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-11-03 14:10:07 +0100
committerDaniel Weipert <git@mail.dweipert.de>2024-11-03 14:10:07 +0100
commit84365b6f901a9c0251a9f724a8d9f81a3787e97d (patch)
tree401e2bf99e6573d1d069f5044e7448067cdfb384 /Towers/placement_particles.gd
parenta43499efa6c228cea3633f9661f3ff09127bd82d (diff)
next commit
Diffstat (limited to 'Towers/placement_particles.gd')
-rw-r--r--Towers/placement_particles.gd16
1 files changed, 16 insertions, 0 deletions
diff --git a/Towers/placement_particles.gd b/Towers/placement_particles.gd
new file mode 100644
index 0000000..72099c5
--- /dev/null
+++ b/Towers/placement_particles.gd
@@ -0,0 +1,16 @@
+extends Node2D
+
+
+@export var play_sound := false
+
+
+func _ready() -> void:
+ $AnimatedSprite2D.animation_finished.connect(func():
+ queue_free()
+ )
+
+ if play_sound:
+ $AudioStreamPlayer.play()
+
+ $AnimatedSprite2D.play()
+ $AnimatedSprite2D2.play()