This is an extension for people who want to have a very quick AI for their 2D enemies. Advance functions are available in the new version.
In version 1.4 things are getting a bit advanced. we have a new movement system called cDirection which uses ray tracing for the enemies. in the normal movement system, enemies only have 4 directions and move very classic like. but in this movement system, they can pick any direction and its compatible with image_angle function. the main script is hundreds of lines and you can use it with only 5 lines of code :-]
Also for advanced users, it has some outputs to control the enemies as much as you like for your game.
Version 1.4 + 2 example files added to the first post. Example 2.gmk is about cDirection.
Functions
enemy_initialize(); enemy_hiccupEnabled(bool); enemy_setHiccupDelay(int); enemy_checkHiccup(); enemy_setSpeed(int); enemy_getSpeed(); enemy_keepAlive(); enemy_getDirection(); enemy_cDirection(bool); enemy_setVision(int);
Example File:

If you find any bug, please report it here and I'll fix it. also suggestions are totally welcome.
Note: This extension is under support and will be developed more.
Download Version 1.4
==Archive==
Version 1.3
Version 1.2
Version 1.1
Version 1.0
Edited by shahrooz232, 31 August 2012 - 10:57 AM.











