pixijs / particle-emitter

A particle system for PixiJS
http://pixijs.io/particle-emitter/docs
MIT License
793 stars 125 forks source link

strange behavior of PropertyList on pixi v4 when used with particle container #90

Closed rkdrnf closed 5 years ago

rkdrnf commented 5 years ago

When tested with below configuration on pixi v4, alpha, scale and other propertyList configurations are not properly applied to each particle. Expected changes of alpha, scale and other propertyList are applied only at the last few ticks before particle is destroyed.

base configuration: configuration on read me
container: PIXI.particle.ParticleContainer
lifetime: { min = 3, max = 3 }

for example, when set scale as below within above setting,

scale: {
list: [
    { value: 1, time: 0 },
    { value: 2, time: 1 }
],
isStepped: false
}

Particle does not change at all for almost all of its lifetime, but suddenly become big before it disappears.

If I change container as normal PIXI.Container or lifetime: {min: 0, max: 3} It seems to works properly.

andrewstart commented 5 years ago

You need to configure your ParticleContainer - by default it only updates the position.