phaser icon indicating copy to clipboard operation
phaser copied to clipboard

ParticleEmitter explodes on creation, when both advance > 0 and emitting: false are present

Open michalfialadev opened this issue 1 year ago • 1 comments

Version

  • Phaser Version: 3.60.b19

Description

ParticleEmitter explodes on creation when using (example values):

advance: 5000,
emitting: false,

Expected behavior: nothing emits, until emitting is set to true.

Current workaround is to 1) not set advance in config, 2) set emitting to true and call 3) myParticleSystem.fastForward(5000); but that defeats the purpose of having both props settable using config.

michalfialadev avatar May 31 '23 10:05 michalfialadev

I would consider this expected. 🙂 And the alternative seems super complicated.

samme avatar Jun 15 '23 20:06 samme

You've advanced the time of the emitter via advance, thereby implicitly making it start emitting. Both properties are valid in the config, but they serve different purposes, really.

photonstorm avatar Feb 20 '24 16:02 photonstorm