aboutsummaryrefslogtreecommitdiff
path: root/scripts/fx/selfdestruct.gd
diff options
context:
space:
mode:
authorjacopograndi <jacopo.grandi@outlook.it>2022-01-19 20:08:32 +0100
committerjacopograndi <jacopo.grandi@outlook.it>2022-01-19 20:08:32 +0100
commitc930eb8a0cabaeb3651e2dc7f94a26310fb2dcf3 (patch)
tree5256261a9510a9ac8e1150c8902ffefbec32ddac /scripts/fx/selfdestruct.gd
parent10d700152deeea4a8c6acea1124b9f9ea4905486 (diff)
turrets implementation finished
Diffstat (limited to 'scripts/fx/selfdestruct.gd')
-rw-r--r--scripts/fx/selfdestruct.gd8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/fx/selfdestruct.gd b/scripts/fx/selfdestruct.gd
new file mode 100644
index 0000000..14f941f
--- /dev/null
+++ b/scripts/fx/selfdestruct.gd
@@ -0,0 +1,8 @@
+extends Node
+
+var timer = 0
+var time_life = 3
+
+func _physics_process(delta):
+ timer += delta
+ if timer >= time_life: queue_free()