| 1234567891011 |
- extends CPUParticles2D
- ## The cocos2d-x ParticleSun preset used when a ball falls out: 350 soft additive particles
- ## per second for one second, drifting slowly outwards and fading from dark orange to black.
- ## The amount/lifetime pair in the scene gives that rate with lifetimes of 0.5 to 1.5 s.
- const DURATION := 1.0
- func _ready() -> void:
- get_tree().create_timer(DURATION).timeout.connect(set_emitting.bind(false))
- get_tree().create_timer(DURATION + lifetime).timeout.connect(queue_free)
|