drawcall / Proton

Javascript particle animation library
https://drawcall.github.io/Proton/
MIT License
2.41k stars 275 forks source link

Pixi.js: Emit 'once' true does not destroy/remove the sprite/graphic from the Pixi Container. #70

Closed sarahgaucimizzi closed 3 years ago

sarahgaucimizzi commented 4 years ago

Using Pixi.js v 5.2.1, my Pixi Container remains littered with destroyed particles. I copy pasted this example into my environment and it works fine.

However if I try to use emitter.emit('once', true), as used in this example, my container does not remove the now dead particles. The particles just hang static in the canvas - as far as proton is concerned they're dead - but not removed from Pixi.

Any help please?

jramstedt commented 4 years ago

55