Flint Particle System Forum - New Particle from library2011-12-11T11:25:16+00:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
New Particle from libraryhttp://flintparticles.org/forum/comments.php?DiscussionID=499&Focus=1665#Comment_16652011-07-13T18:05:09+01:002011-12-11T11:25:16+00:00leadbasedhttp://flintparticles.org/forum/account.php?u=518
I am trying to attach a library item to act as my particle and I cannot seem to make it work. Please offer a suggestion if you've got one
var initEmitter:Emitter2D = new ...
var initEmitter:Emitter2D = new Emitter2D(); initEmitter.counter = new Blast( 10000 ); initEmitter.addInitializer( new ColorInit( 0x000000, 0x000000 ) ); initEmitter.addInitializer( new AlphaInit( 1, 1 ) ); initEmitter.addInitializer(new SharedImage(new PixelArt())); initEmitter.addInitializer( new ScaleImageInit(10, 10)); initEmitter.addInitializer( new Lifetime( 1 ) ); initEmitter.addInitializer( new Position( new BitmapDataZone( webUrl, 50, 50 ) ) ); initEmitter.addAction( new Age( Quadratic.easeInOut ) ); initEmitter.addAction( new TweenToZone( new BitmapDataZone( cellNumber, 50, 50) ) );]]>
New Particle from libraryhttp://flintparticles.org/forum/comments.php?DiscussionID=499&Focus=1673#Comment_16732011-07-15T17:57:25+01:002011-12-11T11:25:16+00:00Richardhttp://flintparticles.org/forum/account.php?u=1
The code you've posted looks fine. Are you using the BitmapRenderer? The DisplayObjectRenderer won't work with the SharedImage initializer.