Enemy Manager code that handles basic enemy functions:
- Create Enemy
- Update Enemy
- Get Closest Enemy
- Destroy Enemy
Update – Version 1.1.0
Refactored code to be OOP
Flash ActionScript 2 game enemy AI. This script gives your enemies the ability to run away from the player.
Customizable Enemy Settings
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
No Comments »