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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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