Sets a pattern for assigning animations to emitted particles. The anims
configuration can be any of:
anim: 'red' anim: [ 'red', 'green', 'blue', 'pink', 'white' ] anim: { anims: [ 'red', 'green', 'blue', 'pink', 'white' ], [cycle: bool], [quantity: int] }
name | type | arguments | Default | description |
---|---|---|---|---|
anims | array | string | Phaser.Types.GameObjects.Particles.ParticleEmitterFrameConfig |
One or more animations, or a configuration object. |
||
pickRandom | boolean | <optional> | true |
Whether animations should be assigned at random from |
quantity | number | <optional> | 1 |
The number of consecutive particles that will receive each animation. |
This Particle Emitter.