Jump to content

Radial Particle Emitter?


Recommended Posts

Do you want it to be that regular, like spokes on a bicycle wheel?

 

I would try creating a custom emitter subclass and overriding emitParticle. You'd duplicate almost all of the code in that method except for the part where you assign velocities to the particles; those you would assign via some trigonometry and an angle that increased by some step. Then make sure you tell it to explode when you start it.

 

The custom fadeout is possible too using setAlpha on the emitter. Since you know the velocity of your particles you can figure out how far they travel in what time; you can then use that time in your call to setAlpha with a linear easing (or whatever).

Link to post
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...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...