Here is the code i was using for my attack but i am going to change it as the health goes down way to fast my guess is like the code above it needs a timer system
function anims()
for x = 2 to 3
if AI Get Entity Action$ (x)="Stopped And Attacking" and attack=1
set object frame x,573,597
dec PlayerHP,1
if PlayerHP < 0 then PlayerHP = 0
attack=0
else
attack=1
endif
if AI Get Entity Action$ (x)="Stopped And Attacking" and attack=0
set object frame x,573,597
dec PlayerHP,1
if PlayerHP < 0 then PlayerHP = 0
attack=1
else
attack=0
endif
next x
endfunction
======================================
GreenDixy Productions http://GreenDixy.Com