Flint Particle System Forum - Creating this effect using FLiNT... 2011-12-13T15:01:26+00:00 http://flintparticles.org/forum/ Lussumo Vanilla & Feed Publisher Creating this effect using FLiNT... http://flintparticles.org/forum/comments.php?DiscussionID=302&Focus=1051#Comment_1051 2010-01-18T10:13:06+00:00 2011-12-13T15:01:26+00:00 Dinkyfish http://flintparticles.org/forum/account.php?u=306 Hi there folks, I was just hoping someone could help me out here - I'm just getting started and I was wondering roughly how I would achieve the effect I'm looking for (if it is even possible) using ...
I'm in the process of building a game in Flash at the moment, and have been looking to create a nice special effect for the attacks of the player-controlled 'machine.' One of the other programmers pointed me in the direction of FLiNT and I was really impressed with the examples of what could be done, so I'm hoping you'll be able to help me out with this one.

The whole game is played from a top-down perspective so what I need to do is create a donut-shaped 'blast' that expands from a centre point (the centre of the player's avatar) to a specified size, then disappears or fades out. Ideally I'd like this to look as much like a circular blast of electricity as possible. I noticed that there was an option to set a 'bounding box' for the particles... is there an option to set a 'bounding shape' (or even a 'bounding circle')?

I could also really use the ability to do some form of collision detection between the particles and other objects on screen (the enemies) so that I can tell if the enemy has been hit by the attack of not. (Failing this I can use another object to perform the collision detection and just have it placed underneath the 'particle blast' with it's alpha value set to 0 so that it's not visible).

Now don't worry, I'm not asking anyone to do all this for me (that would be a tad rude I think :D) - all I'm wanting is a bit of advice from people who are more experienced than myself (I'm actually a bit of a newbie to Flash in general as this is the first time I've worked with it!) as to the best functions, etc to look into using to create the effect that I'm needing. Any other general advice on working with FLiNT would be appreciated too, as I'm sure there's a lot of easy mistakes to make when you're just starting out like me :)

Oh, I should also mention that is using Flash CS4, coding entirely using AS3 and not the using the timeline.

Thanks in advance for any help!]]>
Creating this effect using FLiNT... http://flintparticles.org/forum/comments.php?DiscussionID=302&Focus=1067#Comment_1067 2010-01-24T18:54:56+00:00 2011-12-13T15:01:26+00:00 Richard http://flintparticles.org/forum/account.php?u=1 Hi, and welcome. To remove the particles when they enter or exit a region you need a DeathZone. There are various shapes for zones, all in the zones package. The BoundingBox action is used to ...
To remove the particles when they enter or exit a region you need a DeathZone. There are various shapes for zones, all in the zones package.

The BoundingBox action is used to constrain the particles in a rectangular region. However, there's an alternative and much more flexible option if you use the experimental (i.e. in development) collisions branch from SVN. Using the code in this branch, you can have collisions with various shaped zones. In this branch is a CollisionZone action which causes particles to bounce off the edges of a zone. This means particles inside the zone will stay inside it and particles outside the zone will stay outside. You can use this either to constrain particles or to force them to bounce off objects (create a CollisionZone the size & shape of the object). Currently the CollisionZone works with the RectangleZone and DiscZone classes.

Richard]]>