Flint Particle System Forum - Trying to figure out how to slightly randomize particles2011-12-11T02:38:23+00:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
Trying to figure out how to slightly randomize particleshttp://flintparticles.org/forum/comments.php?DiscussionID=453&Focus=1533#Comment_15332011-02-03T01:56:24+00:002011-12-11T02:38:23+00:00lostatollhttp://flintparticles.org/forum/account.php?u=466
For example, I'm using the bitmaplinerenderer to draw curved lines and they look really good. and I'm trying to get them to go to general areas of the stage, and more importantly, avoid a large ...
I've tried placing gravity and antigravity wells in the places I don't want them to go but it's not accurate enough. I've tried putting jets to turn them, but again, it's taking a lot of jets. So I'm looking into tweentopoints now, but how could I order the points they tween to as well as instead of a certain point, a general area?
Thanks, love the system so far!]]>
Trying to figure out how to slightly randomize particleshttp://flintparticles.org/forum/comments.php?DiscussionID=453&Focus=1542#Comment_15422011-02-03T21:55:16+00:002011-12-11T02:38:23+00:00lostatollhttp://flintparticles.org/forum/account.php?u=466
Am I supposed to created a new emitter just to change the size of the particles?
Trying to figure out how to slightly randomize particleshttp://flintparticles.org/forum/comments.php?DiscussionID=453&Focus=1543#Comment_15432011-02-07T17:16:38+00:002011-12-11T02:38:23+00:00lostatollhttp://flintparticles.org/forum/account.php?u=466
so, I was able to figure out creating random sized particles.. that was all fine and dandy with the scaleImagesInit.
and I've got my lines being drawn properly now too.
I've resorted to ...
and I've got my lines being drawn properly now too.
I've resorted to extending multiple classes in order to achieve a pulsing between two values. But I did have to add public vars to the particle itself, which I don't know if it's acceptable or not. I'm sure there's a better way to do it.. but I'm definitely figuring out the system.. here is the "pulse" code that tweens a new "life" var between two values.
had to add pulseAge, pulse and cycleLife to the particle to store some new values. I know.. simple and stupid.. but I needed it.
} } }]]>
Trying to figure out how to slightly randomize particleshttp://flintparticles.org/forum/comments.php?DiscussionID=453&Focus=1544#Comment_15442011-02-07T17:20:07+00:002011-12-11T02:38:23+00:00lostatollhttp://flintparticles.org/forum/account.php?u=466
ohh, and also, in order to use that pulse code, to tween their size up and down between two values, but keeping in mind their initial size, I wrote this...
package ...
public function get startScale():Number { return _endScale + _diffScale; }
public function set startScale( value:Number ):void { _diffScale = value - _endScale; }
public function get endScale():Number { return _endScale; } public function set endScale( value:Number ):void { _diffScale = _endScale + _diffScale - value; _endScale = value; } override public function update( emitter:Emitter, particle:Particle, time:Number ):void {
//old //particle.scale = _scales.getRandomValue(); }]]>
Trying to figure out how to slightly randomize particleshttp://flintparticles.org/forum/comments.php?DiscussionID=453&Focus=1545#Comment_15452011-02-07T17:21:43+00:002011-12-11T02:38:23+00:00lostatollhttp://flintparticles.org/forum/account.php?u=466
Currently I'm working on altering their scales based on a random time scale instead of cycle life.. so that they size up and down at different rates.. again, this all might be dumb but i need it to ...
Trying to figure out how to slightly randomize particleshttp://flintparticles.org/forum/comments.php?DiscussionID=453&Focus=1550#Comment_15502011-02-14T10:38:20+00:002011-12-11T02:38:23+00:00Richardhttp://flintparticles.org/forum/account.php?u=1
Hi
You're making great progress. Nice work with the pulsing. The normal way to add additional properties to the Particle is to add them to its dictionary.
You're making great progress. Nice work with the pulsing. The normal way to add additional properties to the Particle is to add them to its dictionary.]]>