Flint Particle System Forum - How do you use multiple images for particles in a single emitter?2012-05-26T06:57:30+01:00http://flintparticles.org/forum/
Lussumo Vanilla & 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_18722012-01-04T02:10:44+00:002012-05-26T06:57:30+01:00evohttp://flintparticles.org/forum/account.php?u=553
Something like using a movieclip as the ImageClass and having the emitter randomly choose a frame to use as the particle?
I have tried using SharedImages, creating an array and adding the ...
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_18762012-01-08T15:31:31+00:002012-01-08T15:31:39+00:00Richardhttp://flintparticles.org/forum/account.php?u=1
If you're using the DisplayObjectRenderer, you need to use the ImageClasses initializer rather than the SharedImages initializer.
ImageClasses initializer rather than the SharedImages initializer.]]>