Free ActionScript

Flash AS2 & AS3 Tutorials, Game Code, Effects, Source Files & Sample Downloads

Laser Hitting Solid Objects & Walls

As the title suggests, this is a laser weapon script that shoots a laser beam. The beam stops when it hits solid objects. Written in AS2 to be used in Flash shooter games.

Download Fla Sample

Download Fla Sample

If you’re having trouble understanding how this script works, please review previously posted examples that were incorporated in to this script: Shooting Laser Weapon & Apply Filters Dynamically.

Update:
ActionScript 3 version of this script is available here:

http://www.freeactionscript.com/2011/07/laser-weapon-with-wall-collision-detection/

Realistic Dynamic Bitmap Explosion Effect

Download Fla Sample

Download Fla Sample

If you’re having trouble understanding how everything works, check out these previous examples that were incorporated in to this one:

Realistic Bitmap Smoke Trailer

Here is a new Bitmap Realistic Smoke Effect.

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.

Preview

Download Fla Sample

Download Fla Sample

ActionScript Shake Effect

Download Fla Sample

Download Fla Sample