Game Enemy AI - Random Enemy Movement

Saturday, August 30th, 2008 | Enemy AI, Game Examples AS2 | No Comments

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.

Tags: , , , , , , , , , , , ,

Game Navigation Engine - Player movement

Sunday, August 24th, 2008 | Game Engine, Game Examples AS2 | No Comments

Game Navigation Engine Features

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

Preview

Download Fla Sample

Download Fla Sample

Tags: , , , , , , , , , , ,

Dynamic Particle Explosions

Sunday, August 24th, 2008 | Effects Dynamic, Game Examples AS2 | 1 Comment

ActionScript 2.0 Dynamic Particle Explosion engine for use in Flash games. Easy to customize effects. You can set a number of different settings to change the effects on the fly.

Preview

Download Fla Sample

Download Fla Sample

Tags: , , , , , , , , ,

Drag Drop & Snap Inventory System

Saturday, August 23rd, 2008 | Game Examples AS2, Interface | No Comments

Update 11/03/08
Please see http://www.freeactionscript.com/2008/11/drag-drop-snap-inventory-system-v2/ for the latest version of the Drag Drop and Snap Inventory system.

Here is a prototype of my ActionScript 2.0 drag, drop and snap inventory system for flash games.

Drag, Drop & Snap Inventory System Sample

Download Fla Sample

Download Fla Sample

Tags: , , , , , , , , , , , , , , ,

Smoke Effect - Particle Trailer

Saturday, August 23rd, 2008 | Effects Animated, Game Examples AS2 | No Comments

Here is a simple ActionScript 2 smoke trailer that can be used in games. You can attach this smoke straight to enemies or other objects to simulate damage.

Smoke Trailer Sample

Download Fla Sample

Download Fla Sample

See http://www.freeactionscript.com/2008/10/realistic-smoke-effect-particle-trailer/ for the latest version of the smoke effect.

Tags: , , , , , , , , , , ,

Engine Trailer - Engine Particles

Saturday, August 23rd, 2008 | Effects Animated, Game Examples AS2 | 1 Comment

Here is a simple ActionScript 2 engine thrust trailer that can be used in space games.

Engine Trailer Particles Sample

Download Fla Sample

Download Fla Sample

Tags: , , , , , , , , , , ,