diff options
Diffstat (limited to 'scripts/fx/selfdestruct.gd')
-rw-r--r-- | scripts/fx/selfdestruct.gd | 8 |
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() |