Flint Particle System Forum - How do you use multiple images for particles in a single emitter? Sat, 26 May 2012 06:53:20 +0100 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher How do you use multiple images for particles in a single emitter? http://flintparticles.org/forum/comments.php?DiscussionID=548&Focus=1872#Comment_1872 http://flintparticles.org/forum/comments.php?DiscussionID=548&Focus=1872#Comment_1872 Wed, 04 Jan 2012 02:10:44 +0000 evo
I have tried using SharedImages, creating an array and adding the individual graphics to it, but it was resulting in the following error and didn't appear to be behaving properly:

ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display::DisplayObjectContainer/removeChild()
at org.flintparticles.twoD.renderers::DisplayObjectRenderer/removeParticle()[C:\Users\Admin\Desktop\GAME\Utils\org\flintparticles\twoD\renderers\DisplayObjectRenderer.as:108]
at org.flintparticles.common.renderers::SpriteRendererBase/particleRemoved()[C:\Users\Admin\Desktop\GAME\Utils\org\flintparticles\common\renderers\SpriteRendererBase.as:160]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at org.flintparticles.common.emitters::Emitter/update()[C:\Users\Admin\Desktop\GAME\Utils\org\flintparticles\common\emitters\Emitter.as:915]
at org.flintparticles.common.emitters::Emitter/updateEventListener()[C:\Users\Admin\Desktop\GAME\Utils\org\flintparticles\common\emitters\Emitter.as:846]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at org.flintparticles.common.utils::FrameUpdater/frameUpdate()[C:\Users\Admin\Desktop\GAME\Utils\org\flintparticles\common\utils\FrameUpdater.as:101]
Cannot display source code at this location.

I guess a simpler request would be for an example of a working emitter that randomly uses multiple images for particles.

Thanks! ]]>
How do you use multiple images for particles in a single emitter? http://flintparticles.org/forum/comments.php?DiscussionID=548&Focus=1876#Comment_1876 http://flintparticles.org/forum/comments.php?DiscussionID=548&Focus=1876#Comment_1876 Sun, 08 Jan 2012 15:31:31 +0000 Richard ImageClasses initializer rather than the SharedImages initializer. ]]>