summaryrefslogtreecommitdiff
path: root/Towers/placement_particles.gd
diff options
context:
space:
mode:
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()