Options
All
  • Public
  • Public/Protected
  • All
Menu

A Texture behavior that picks a random animation for each particle to play. See AnimatedParticleArt for detailed configuration info.

Example config:

{
type: 'animatedRandom',
config: {
anims: [
{
framerate: 25,
loop: true,
textures: ['frame1', 'frame2', 'frame3']
},
{
framerate: 25,
loop: true,
textures: ['frame3', 'frame2', 'frame1']
}
],
}
}

Hierarchy

  • RandomAnimatedTextureBehavior

Implements

Index

Constructors

Properties

order: BehaviorOrder = BehaviorOrder.Normal

Order in which the behavior will be handled. Lower numbers are handled earlier, with an order of 0 getting special treatment before the Emitter's transformation is applied.

editorConfig: BehaviorEditorConfig = null
type: string = 'animatedRandom'

Methods

  • updateParticle(particle: Particle, deltaSec: number): void

Generated using TypeDoc