natiny.particles.set_lifetime
natiny.particles.set_lifetime(particles, min [, max])
Sets how long each new particle lives.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
particles |
number |
Particle system handle from natiny.particles.create |
|
min |
number |
Smallest lifetime, in seconds | |
max |
number |
min |
Largest lifetime, in seconds |
Example
natiny.particles.set_lifetime(smoke, 2.5, 4)
Notes
- Curves set with
set_sizesandset_colorsrun over each particle's own lifetime.