Free ActionScript

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

Vertical Smoke Trailer Effect

A simple update to the previous smoke effect to make it vertical. Suited for side scrollers.

Preview

Download Fla Sample

Download Fla Sample

Realistic Smoke Effect – Particle Trailer – v2

Updated my previous ActionScript 2 smoke effect trailer to make it more realistic.  You can attach this smoke straight to enemies or other objects to simulate damage in flash games.

Smoke Trailer Sample v2

Download Fla Sample

Download Fla Sample

Game Enemy AI – Random Enemy Movement

Flash ActionScript 2 game enemy AI. This game engine creates a preset amount of enemies, gives enemies stats, and makes them move around randomly.  AS2 code example available for download below.

You can set enemy behavior like:

  • Roam Speed – Speed at which the enemy travels
  • Roam Time – How long to move before changing direction
  • Roam Distance – How many pixels to travel

Also check out the Game Enemy AI – Follow Player script.

ActionScript Enemy AI Example

Download Fla Sample

Download Fla Sample

Note 10/30/08:
Updated script to fix an error. Current version is 1.1.

Game Navigation Engine – Player movement

Game Navigation Engine Features

  • 4 directional player movement
  • Multi key press detection
  • Player rotation
  • Acceleration/deceleration

Preview

Download Fla Sample

Download Fla Sample