Free ActionScript

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

Endless Parallax Scrolling

This is a parallax star field scrolling effect. It gives the illusion of moving through 3d space. This effect endless and will continue scrolling forever.

Download Fla Sample

Download Fla Sample

Update:
ActionScript 3 version of this script is available here:
http://www.freeactionscript.com/2010/06/endless-starfield-parallax-scrolling/

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:

Parallax Movement Effect

This is a fla example of my parallax engine. Can be used in top-down space shooters or side scrollers with a little work (just remove the y movement from the code).

Preview

Download Fla Sample

Download Fla Sample

Update
AS3 version of this script is available here:
http://www.freeactionscript.com/2010/06/endless-starfield-parallax-scrolling/

Smooth 4-way Player Movement

This Flash game example shows you how to create smooth 4-way player movement with acceleration & friction. This fla also shows you how to create a screen-wrap effect (think asteroids).

Custom Settings:

  • max velocity
  • acceleration
  • friction

Preview

Download Fla Sample

Download Fla Sample