playParticles
Play a particle effect.
Syntax
engine.audio.playParticles(options, withId);
Parameters
| Name | Type | Description |
|---|---|---|
options | ParticlesOptions | The options for the particles to create. |
withId (optional) | string | The ID of the particles effect to create. |
Returns
ParticlesManager- The particles manager.
Example
const particles = engine.audio.playSound({
amount: 50,
});
Available on: Client