Confuse with particle emitter explode example and docs

Hi

I’m a little confuse why the example, particularly the emit from zone does not pass in any arguments and works with latest phaser build but when i have them in my code, it asks for 3 parameters. count, x and y.

https://labs.phaser.io/edit.html?src=src/game%20objects/particle%20emitter/emit%20from%20shape.js&v=3.55.2

Show your code please.

Hi Samme,

The function itself requires 3 arguments - phaser/ParticleEmitter.js at v3.55.2 · photonstorm/phaser · GitHub

But the example emit from shape doesn’t pass any argument - Phaser 3 Examples

I’m trying to copy over the example to my own code and I’m not able to because of the required arguments.

All of the explode() arguments are optional, in fact.