some tips:
i have only a very weak walking script, no gravity or something like this
also you can add a simple line at the top of your loop:
if(my.Ehealth < 0) my.status = STATUS_DIE; //Make sure that the enemy is in STATUS_DIE when he is dead


Visit my site: www.masterq32.de