Sets a pattern for assigning texture frames to emitted particles. The frames
configuration can be any of:
frame: 0 frame: 'red' frame: [ 0, 1, 2, 3 ] frame: [ 'red', 'green', 'blue', 'pink', 'white' ] frame: { frames: [ 'red', 'green', 'blue', 'pink', 'white' ], [cycle: bool], [quantity: int] }
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 |
quantity | number | <optional> | 1 |
The number of consecutive particles that will receive each frame. |
This Particle Emitter.