PixiJS Particle Emitter - Texture Ordered

Texture Ordered assigns all particles emitted from this emitter a single texture from an array in order. Really doesn’t work with a walk cycle… But it gets the idea across.

You should use a spritesheet for particles. If you use more than one sprite, make sure to use with a regular Container, not a ParticleContainer, as a Particle Container only works with one image.

Great free sprites from GameArt2d

Parameters

Texture Ordered Behavior Example:

Texture Ordered Behavior Configuration: – other configuration excluded for brevity

{
  type: 'textureOrdered',
  config: {
    textures: [
      "/images/walk0.png",
      "/images/walk1.png",
      "/images/walk2.png",
      "/images/walk3.png",
      "/images/walk4.png",
      "/images/walk5.png",
      "/images/walk6.png",
      "/images/walk7.png",
      "/images/walk8.png",
      "/images/walk9.png",
    ]
  }
},

PixiJS Particle Emitter: The Unauthorized Manual