class_name Explosion extends Particles2D func _init(): emitting = true func _process(delta): if not emitting: queue_free()