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.
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
1 Comment »