natiny.particles.set_rate
natiny.particles.set_rate(particles, per_second)
Sets how many particles are spawned per second while the system is emitting.
Parameters
| Name | Type | Description |
|---|---|---|
particles |
number |
Particle system handle from natiny.particles.create |
per_second |
number |
Particles per second; 0 spawns none |
Example
natiny.particles.set_rate(rain, 400)