pixijs / particle-emitter

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

Scale & Alpha tweening ParticleContainer #88

Closed digilocker closed 5 years ago

digilocker commented 5 years ago

Hi, think this may apply to another issue mentioned here, but I've been working on a slot game...

With a score effect I have extended the particlecontainer class which emits a starburst effect when it hits a score.

With the particlecontainer I've noticed that the tweening between the scale and alpha still appears stepped, but with a regular container its a smooth tweened transition. Is this a known issue & is there any fix for this? Have also tried using a list for the parameters (preferred method) but the issue remains with either.

Many thanks

andrewstart commented 5 years ago

I assume that scale and alpha or tint have been enabled on your particle container? By default ParticleContainer only treats position as a dynamic property.

digilocker commented 5 years ago

I assume that scale and alpha or tint have been enabled on your particle container? By default ParticleContainer only treats position as a dynamic property.

My bad, many many thanks! missed (...arguments) on the constructor so the properties weren't being passed through. Feel free to mark as closed.