Phaser API Documentation

  Version: 
setFrame(frames, [pickRandom], [quantity])

Description:

Sets a pattern for assigning texture frames to emitted particles.

Parameters:

name type arguments Default description
frames array | string | number | Phaser.Types.GameObjects.Particles.ParticleEmitterFrameConfig

One or more texture frames, or a configuration object.

pickRandom boolean <optional> true

Whether frames should be assigned at random from frames.

quantity number <optional> 1

The number of consecutive particles that will receive each frame.

Returns:
Description:

This Particle Emitter.