Flint Particle System Forum - Setting Particles in a Layout on Initialisation Sun, 11 Dec 2011 09:59:13 +0000 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher Setting Particles in a Layout on Initialisation http://flintparticles.org/forum/comments.php?DiscussionID=373&Focus=1253#Comment_1253 http://flintparticles.org/forum/comments.php?DiscussionID=373&Focus=1253#Comment_1253 Tue, 20 Jul 2010 20:06:06 +0100 birdsigh


I can take the Array of Sprites and add these to the emitter as particles (using createParticle2DFromDisplayObject and addExistingParticles), and they are moving around as I want when the emitter is started. However, I cannot set the initial position for each particle to match the layout of the Sprites (as shown above).

Trying to set the x, y value on the Particle2D simply moves all particles to be initialised at the x,y coords of the last particle in the Array I passed to addExistingParticles. Setting an initialiser position only lets me spawn all particles from one coordinate (as show below).



Hopefully I'm just vastly overcomplicating this and it isn't as hard as I'm making it for myself :) Can anyone help me on how to do this?

Thanks! ]]>
Setting Particles in a Layout on Initialisation http://flintparticles.org/forum/comments.php?DiscussionID=373&Focus=1261#Comment_1261 http://flintparticles.org/forum/comments.php?DiscussionID=373&Focus=1261#Comment_1261 Sat, 24 Jul 2010 18:08:13 +0100 Richard
This sounds a bit odd. If you indicate the renderer when calling createParticle2DFromDisplayObject, then the x and y should be set automatically for you so that the display object starts from its current location. Can you post some example code that I can debug? ]]>