Game Enemy AI - Follow Player

Saturday, October 25th, 2008 | Enemy AI, Game Examples AS2

Flash ActionScript 2 game enemy AI. This script gives your enemies the ability to follow the player.

Download Fla Sample

Download Fla Sample

Customizable Enemy Settings

  • movement speed
  • turn rate
  • aggression range

Update
Check out the updated version of this script that incorporates different enemy behaviors in to one function, as well as creating multiple enemies at the same time: Enemy Behavior - Run Away & Follow Player


Tags: , , , , , , , , ,

2 Comments to Game Enemy AI - Follow Player

Werty2334
April 6, 2009

I really found this fla useful but I’m a little stuck. I want to make more than one of these enemies but when I do that, only one of them follows. I am duplicating the enemy and putting it on stage at random.

pradvan
April 7, 2009

Hi Werty2334, upload your fla somewhere, I’ll take a look.

Leave a comment

You must be logged in to post a comment.