Closed tilergames closed 9 years ago
Thanks a lot for the report and the fix! I'd love to be able to reproduce the problem myself, though, to be sure there are no side effects. Do you think you could send me a quick demo that shows the case when the event is not dispatched? (E.g. just a pex file and (if necessary) the code that causes COMPLETE not be dispatched.) That would be a huge help — thanks a lot in advance!
Ah, forget it — I could reproduce the problem. Fixed in a9e58ed37145c8a9057a1109bb0a2b8564a17a93.
Thanks again for the report!
The starling extension, particle system, it may not dispatch COMPLETE event on some circumstance.
Due to the code downhere in ParticleSystem.advanceTime :
if the mEmissionTime member is not zero, the the event COMPLETE will be not disptached. but the mEmissionTime is minused after that code
So it may add code after the mEmissionTime change, like below,
I've tested the code, it works.
Thanks. Hope it help.