Phaser API Documentation

  Version: 
flow(frequency, [count], [stopAfter])

Description:

Puts the emitter in flow mode (frequency >= 0) and starts (or restarts) a particle flow.

To resume a flow at the current frequency and quantity, use Phaser.GameObjects.Particles.ParticleEmitter#start instead.

Parameters:

name type arguments Default description
frequency number

The time interval (>= 0) of each flow cycle, in ms.

count Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType <optional> 1

The number of particles to emit at each flow cycle.

stopAfter number <optional>

Stop this emitter from firing any more particles once this value is reached. Set to zero for unlimited. Setting this parameter will override any stopAfter value already set in the Emitter configuration object.

Returns:
Description:

This Particle Emitter.