Home › Forums › Emitters › Tesla Effect › Re: Re: Tesla Effect
I’ve had a quick go at a Tesla effect and attached it with Blitzmax example. My method was to make a line effect, and set the handle to 0,0 so it originates at the mouse pointer (on the effects tab). I used an electric shape with 2 separate emitters and made their angle point in opposite directions, and made sure that they were relative to the effect. They have a short lifetime as you’d expect with electric, plus the fade in and out on the alpha graph, and grow a little in size. I also added a glow emitter for extra effect.
As for implementing in Blitzmax, see example attached. It’s a case of adjusting the line length and angle to point the effect in the right direction. You might want to tweak it so that the effect maybe spawns less or smaller particles as the line length gets shorter otherwise it might look a bit too condensed.
Currently the maximum amount of particles in the editor is 10000. In the module you can set to whatever you want when creating the particle manager, but 30000 sounds like a bit much! There’s only so much you throw at the graphics card every frame š