Flint Particle System Forum - Centering particles Sat, 26 May 2012 07:32:50 +0100 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher Centering particles http://flintparticles.org/forum/comments.php?DiscussionID=557&Focus=1901#Comment_1901 http://flintparticles.org/forum/comments.php?DiscussionID=557&Focus=1901#Comment_1901 Tue, 03 Apr 2012 13:05:12 +0100 bestam
First post! Glad to be using FLiNT, looks to be the best flash particle engine out there. Exactly what I needed for my project, I will credit your work Richard.

However I'm having issues with larger particles. I'm emitting large smoke particles and smaller ones from the same point. As the particles aren't centered, I come up with this result :
http://www.itstudents.be/~abrakam/faeriawp/particles.png
I would like the big smoke to be occupying the same space as the smaller sparks... Is there a way to tell the emitter to center them all? Here is all I do to define their initial position :
locBigSmokeEmiter.addInitializer( new Position( new DiscZone( new Point( 0, 0 ), 30)));

Thx! ]]>
Centering particles http://flintparticles.org/forum/comments.php?DiscussionID=557&Focus=1902#Comment_1902 http://flintparticles.org/forum/comments.php?DiscussionID=557&Focus=1902#Comment_1902 Tue, 03 Apr 2012 13:14:27 +0100 bestam locBigSmokeEmiter.addInitializer( new ImageClass( Assets.SMOKE ) ); ]]> Centering particles http://flintparticles.org/forum/comments.php?DiscussionID=557&Focus=1913#Comment_1913 http://flintparticles.org/forum/comments.php?DiscussionID=557&Focus=1913#Comment_1913 Thu, 19 Apr 2012 22:47:05 +0100 Richard Centering particles http://flintparticles.org/forum/comments.php?DiscussionID=557&Focus=1925#Comment_1925 http://flintparticles.org/forum/comments.php?DiscussionID=557&Focus=1925#Comment_1925 Mon, 07 May 2012 14:23:25 +0100 bestam
new ImageClass( Particle, [Assets.ENERGY] )

public class Particle extends Sprite {
public function Particle(parImageClass:Class) {
const locBitmap:Bitmap = new parImageClass();
locBitmap.x = -locBitmap.width/2;
locBitmap.y = -locBitmap.height/2;
addChild(locBitmap);
}
}
} ]]>