Jump to content

Particle emitter.start


Etienne
 Share

Recommended Posts

Hello!

The doc api don't reflect the code and the behavior of Emitter.start for the quantity parameter in Phaser.

In the doc we can read : [ quantity :  How many particles to launch. 0 = "all of the particles" which will keep emitting until Emitter.maxParticles is reached. ]

For me is more something like [ quantity :  How many particles will be launched. 0 = "keep launching particle forever".   ]

I'm wrong ?

Best regards,
Etienne

Emitter.start(explode, lifespan, frequency, quantity, forceQuantity)

quantity :  How many particles to launch. 0 = "all of the particles" which will keep emitting until Emitter.maxParticles is reached.

Link to comment
Share on other sites

It's usually easier to use Emitter#explode or Emitter#flow instead.

The 2.6.2 docs on Emitter#start are a bit misleading. With explodes=true, you have to pass a quantity > 0. With explode=false, quantity=0 means stay on forever and release particles as long as there are some available.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...