15 lines
304 B
GDScript
15 lines
304 B
GDScript
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()
|