emitter(x, y, maxParticles) → {Phaser.Particles.Arcade.Emitter}
Create a new Emitter.
A particle emitter can be used for one-time explosions or for
continuous effects like rain and fire. All it really does is launch Particle objects out
at set intervals, and fixes their positions and velocities accordingly.
Parameters
| Name | Type | Argument | Default | Description |
|---|---|---|---|---|
x | number | <optional> | 0 | The x coordinate within the Emitter that the particles are emitted from. |
y | number | <optional> | 0 | The y coordinate within the Emitter that the particles are emitted from. |
maxParticles | number | <optional> | 50 | The total number of particles in this emitter. |
Returns
The newly created emitter object.
- Source code: gameobjects/GameObjectFactory.js (Line 378)
Please login to continue.