Here is a new Dynamic Bitmap Particle Explosion effect.
This is an update to the previous dynamic explosion effect that used movieclips instead of BitmapData. The bitmap version works much faster and smoother. Check out this post for BitmapData usage examples.
This is an update to the previous smoke effect version that used movieclips instead of BitmapData. The bitmap version works much faster and smoother. Check out this post for BitmapData usage examples.
I’ve been thinking about how targeting the closest enemy would work and started experimenting with the algorithm. Basically AS has an array method called sortOn, that sorts objects properties in any order you want. Well, that’s the catch. It only sorts objects, not movieClips.
The work around is simple enough; when creating a new enemy object, just save a reference to the movieClip on stage inside the object’s property.
Here is an ActionScript 2 enemy ai script that allows you to create enemies that move around randomly inside a container movieclip and randomly change direction.
4 Comments »