Particles.Arcade.Emitter#start()

start(explode, lifespan, frequency, quantity, forceQuantity) → {Phaser.Particles.Arcade.Emitter}

Call this function to start emitting particles.

Parameters
Name Type Argument Default Description
explode boolean <optional>
true

Whether the particles should all burst out at once (true) or at the frequency given (false).

lifespan number <optional>
0

How long each particle lives once emitted in ms. 0 = forever.

frequency number <optional>
250

Ignored if Explode is set to true. Frequency is how often to emit 1 particle. Value given in ms.

quantity number <optional>
0

How many particles to launch. 0 = "all of the particles" which will keep emitting until Emitter.maxParticles is reached.

forceQuantity number <optional>
false

If true and creating a particle flow, the quantity emitted will be forced to the be quantity given in this call. This can never exceed Emitter.maxParticles.

Returns

This Emitter instance.

Source code: particles/arcade/Emitter.js (Line 503)
doc_phaser
2017-02-14 10:58:34
Comments
Leave a Comment

Please login to continue.