From 84365b6f901a9c0251a9f724a8d9f81a3787e97d Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 3 Nov 2024 14:10:07 +0100 Subject: next commit --- Towers/placement_particles.gd | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Towers/placement_particles.gd (limited to 'Towers/placement_particles.gd') 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() -- cgit v1.2.3