ActionScript Enemy AI

Enemy Behavior - Run Away & Follow Player

Thursday, April 9th, 2009 | Enemy AI, Game Examples AS2 | 27 Comments

Make your enemies alive! This Flash ActionScript 2 game enemy AI script shows you how to add different enemy behavior to multiple enemies.

Each behavior is easily customizable; you can change movement speed, turn speed, aggression range & enemy graphic for each type of enemy.

Download Fla Sample

Download Fla Sample

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

Random Movement & Random Direction Change

Sunday, January 11th, 2009 | Enemy AI, Game Examples AS2 | 1 Comment

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.

Preview

Download Fla Sample

Download Fla Sample

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

Simple Enemy Random Movement

Sunday, December 14th, 2008 | Enemy AI, Game Examples AS2 | No Comments

Here is a simple AS2 enemy creation/ai script that allows you to create enemies that move about randomly inside a container movieclip. You can set custom movement boundaries/borders. When an enemy hits the border, it will “bounce off” and move in the opposite direction.

Random Movement Example

Download Fla Sample

Download Fla Sample

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