Skip to main content

Pixi Particle Emitter

This node creates and manages particle effects with customizable emission patterns and particle behaviors.

The Pixi Particle Emitter creates dynamic particle effects in your Pixi scene.

The Pixi Particle Emitter node creates and manages particle systems for creating dynamic visual effects like fire, smoke, explosions, sparks, and other particle-based animations in your Pixi scene.

Inputs

Position

DataDescription
XEmitter horizontal position
YEmitter vertical position

Appearance

DataDescription
VisibleEmitter visibility
Container AlphaOverall transparency

Particle Textures

DataDescription
Particle Texture 1First particle texture image
Particle Texture 2Second particle texture image
Particle Texture 3Third particle texture image
Particle Texture 4Fourth particle texture image
Particle Texture 5Fifth particle texture image

Emitter Configuration

DataDescription
Emitter ConfigJSON configuration for particle behavior
EmitEnable/disable particle emission
Particle CountMaximum number of particles

Control

SignalDescription
Start EmittingSignal to start emission
Stop EmittingSignal to stop emission gracefully
Kill All ParticlesSignal to immediately remove all particles

Presets

DataDescription
Fire PresetFire effect configuration
Smoke PresetSmoke effect configuration
Explosion PresetExplosion effect configuration
Spark PresetSpark effect configuration

Animation

DataDescription
Ticker EnabledAnimation ticker
Ticker SpeedAnimation speed
Animation TypeAnimation type
Custom Animation CodeCustom animation code

Outputs

DataDescription
Active Particle CountCurrent number of active particles
Textures LoadedBoolean indicating texture load status
Textures LoadingBoolean indicating loading state
Loaded Texture CountNumber of loaded textures
Node ReferenceNode reference

Usage

Pixi Particle Emitter nodes are used to create dynamic particle effects in your Pixi scene. They support:

  • Multiple particle textures
  • Customizable emission patterns
  • Particle lifecycle management
  • Preset configurations
  • Performance monitoring

Emitter Configuration

The Emitter Config input accepts a JSON object with particle system settings:

{
"alpha": {
"start": 1,
"end": 0
},
"scale": {
"start": 1,
"end": 0.5
},
"speed": {
"start": 100,
"end": 50
},
"lifetime": {
"min": 1,
"max": 3
},
"frequency": 0.1,
"emitterLifetime": -1,
"maxParticles": 100,
"pos": {
"x": 0,
"y": 0
},
"addAtBack": false,
"spawnType": "circle",
"spawnCircle": {
"x": 0,
"y": 0,
"r": 10
}
}

Performance Tips

  • Limit Particle Count based on device capabilities
  • Use appropriate Frequency values
  • Monitor Active Particle Count for performance
  • Use preset configurations when possible
  • Consider particle lifetime for memory management

Example Use Cases

  1. Game Effects: Explosions, fire, smoke, and magic spells
  2. UI Effects: Button clicks, notifications, and transitions
  3. Environmental Effects: Rain, snow, dust, and atmospheric particles
  4. Decorative Effects: Sparkles, confetti, and visual enhancements