Skip to content
nhmkdev edited this page Jan 4, 2014 · 2 revisions

Definition

The Particle system is used to show particles based on the data specified

Container

Particle Data

var Particles = ig.global.data.particles;

Particle Object

var Particle = ig.global.support.particle;

#Usage

Example from the Projectile entity:

Particle.spawn(this.pos.x + (this.flip ? -15 : 15), this.pos.y, { flip: this.flip, p:Particles.sample});

Clone this wiki locally