Welcome, Guest
Want to take part in these discussions? Sign in if you have an account, or apply for one below
-
- CommentAuthorTheDude
- CommentTimeNov 4th 2008
Greetings,
I've a final question and then I'm done (for a while)
I've discovered a nice way to do object explosions that move with the velocity of the attacking projectiles using DisplayObjectZone as my origin position and Explode with Velocity DiscZone. It's quite impressive and it's all thanks to Flint- BUT:
Is there any emitter actions out there that can possibly grab the pixel data (more specifically- colour) of a DisplayObject(a MovieClip) on the screen
and tint the nearest particles to that colour?
If not that's definitely a request for the next update.
By the way Richard just for reference I came across a nice examples page of different Zones and their effects here;
http://2px.cc/2blog/2008/03/flintzones.html
Rather handy I'm sure you'd agree. -
- CommentAuthorTheDude
- CommentTimeNov 4th 2008
var particles:Array = Particle2DUtils.createParticles2DFromDisplayObjects(renderer,ob, emitter.particleFactory);
thought that would do the trick but I can't get the syntax right! -
- CommentAuthorRichard
- CommentTimeNov 6th 2008
createParticles2DFromDisplayObjects takes an array of display objects and converts them to particles which can then be added to an emitter using the emitter's addExistingParticles method.
I'm not entirely sure what you are trying to do (if you have a visual example that would help) but I suspect it's something like the createPixelParticlesFromBitmapData method, but for a display object rather than a bitmap data object. If that's the case, you could draw your display object into a bitmap data object and pass that bitmap data object to this method to get an array of pixel particles that match the colour and position of the pixels of the display object.
1 to 3 of 3
