metalNumb Posted August 10, 2015 Share Posted August 10, 2015 I need to create a particle emitter that emits particles radially with a custom fade/ disappear timeout with radius. Any ideas how to do that with phaserJS ?Thanks ! Link to comment Share on other sites More sharing options...
drhayes Posted August 11, 2015 Share Posted August 11, 2015 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). metalNumb 1 Link to comment Share on other sites More sharing options...
metalNumb Posted August 12, 2015 Author Share Posted August 12, 2015 Thanks for your idea !Seems to be a lot of work for my JS/ Maths skills so far but would be fun to try something a bit advanced. Link to comment Share on other sites More sharing options...
Recommended Posts