From c930eb8a0cabaeb3651e2dc7f94a26310fb2dcf3 Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Wed, 19 Jan 2022 20:08:32 +0100 Subject: turrets implementation finished --- scripts/fx/selfdestruct.gd | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 scripts/fx/selfdestruct.gd (limited to 'scripts/fx') 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() -- cgit v1.2.3-54-g00ecf