Example

// Create a basic emitter at position 100, 100
var emitter = new me.ParticleEmitter(100, 100);
// Adjust the emitter properties
emitter.totalParticles = 200;
emitter.minLife = 1000;
emitter.maxLife = 3000;
emitter.z = 10;
// Add the emitter to the game world
me.game.world.addChild(emitter);
// Launch all particles one time and stop, like a explosion
emitter.burstParticles();
// Launch constantly the particles, like a fountain
emitter.streamParticles();
// At the end, remove emitter from the game world
// call this in onDestroyEvent function
me.game.world.removeChild(emitter);

Extends

Rect

Members

staticfloating :Boolean

Floating property for particles, value is forwarded to the particle container

Methods

staticburstParticles(total)

Launch all particles from emitter and stop
Particles example: Explosions