Exploding Particles

Hiya, I’m making a RPG and I want my “heart” symbol to explode into particles when the player hitTests it. Is there any other way to do that kind of effect without having to animate each and every particle? (And also not lagging the whole game).

I want to have particles like these:

http://www.increditools.com/flash_particle_studio/samples.php#

Look at the “Sparkle” Animation.

PS: I can’t use Flash Particles Studios because its not compatible with a Mac.

Most of these are just rendering a white image at fading alpha to a bitmapdata. Make a class for a particle that takes reference to a bitmapdata image. Give it properties like color (with alpha), position, velocity, and life. Then make an emitter class with an array of said particles, a position and velocity, and a life number and attributes like spawn rate, spawn min and max radius and other things. Then make an emitter manager class with an array of emitters and functions to insert new emitters that take the parameters like position, velocity and such.

(In order to get good performance the only method is to use bitmap rendering, use copy pixels basically on a bitmapdata the size of the screen, if you need rotating particles then you’ll need to store the rotations as separate bitmaps, if you need help with that ask).

Oww, my brain hurts already lol, isn’t there a simpler way to do it? I know the particle effect is pretty complicated but my AS level on a scale of 1-10 (10 being the best) its probaly around 2.5. I was thinking about a Particles program like Flash Particles Studios thats compatible with a Macintosh.

sekasi recently posted an experiment that is similar to what you describe:

Particles are pretty hard to understand without a pretty good understanding of actionscript.

Andre Michelle also has a very cool example of this. Source available.

That guy always makes me feel stupid!

Ah ok, I guess your right therobot. Oh and btw, I use AS2 and Flash 8 don’t have CS yet :expressionless:

I’m almost 10 billion percent sure that the examples you posted were done in AE.

[quote=Iamthejuggler;2350285]Particles are pretty hard to understand without a pretty good understanding of actionscript.

Andre Michelle also has a very cool example of this. Source available.

That guy always makes me feel stupid![/quote]

Man… half the stuff I didn’t think it was possible in flash… thanks for the link… and yes it does make me feel stupid but it also gives me tons of inspiration for some of my games…

■■■■… I gotta pace myself though… :stuck_out_tongue: