diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-11-03 14:10:07 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-11-03 14:10:07 +0100 |
commit | 84365b6f901a9c0251a9f724a8d9f81a3787e97d (patch) | |
tree | 401e2bf99e6573d1d069f5044e7448067cdfb384 /Towers/placement_particles.gd | |
parent | a43499efa6c228cea3633f9661f3ff09127bd82d (diff) |
next commit
Diffstat (limited to 'Towers/placement_particles.gd')
-rw-r--r-- | Towers/placement_particles.gd | 16 |
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() |