JongJungBu wrote:Then give him some articles or headsup on doing it.

JJB
I don't have articles

. But the simplest way to have AI is to have a series of "if () {} else if"
or switch. This will do perfectly for such a simple task.
Well, something like this:
- Code:
if (enemy_far)
{ShootFireball();// Or few random proper actions}
else
if(enemy_close && enemyState.Jump)
{MakeUppercut();}else
if (enemy_close && enemyState.Defend)
{Makebackheel();}
Etc, etc.. If combos are possible, you can record them and play easily. AI will have a "stack" of commands, and "play" will simply add basic comands to stack for future execution.