init
This commit is contained in:
14
destroy.gd
Normal file
14
destroy.gd
Normal file
@@ -0,0 +1,14 @@
|
||||
extends CPUParticles2D
|
||||
|
||||
var time :=0.0
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
emitting = true
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
time+=delta
|
||||
if time >= 10:
|
||||
queue_free()
|
||||
Reference in New Issue
Block a user