splash_gfx.gd 323 B

1234567891011121314
  1. extends GPUParticles3D
  2. signal custom_finished # todo : use built-in one
  3. func _ready() -> void:
  4. set_emitting(true)
  5. var emission_timer: SceneTreeTimer = get_tree().create_timer(get_lifetime(), false, true)
  6. emission_timer.timeout.connect(_on_emission_ended)
  7. func _on_emission_ended() -> void:
  8. custom_finished.emit()