Maybe using bullet would do the trick?
compare two values - distance(player.x,player.y,enemy.x,enemy.y)
if not agro-----------------greater than X
-------------then
-------------set enemy "agro" true
isn't agro
-----every X seconds
-----set bullet speed to X
-----set bullet angle to random (360)
is agro
-----move towards angle -
-----angle (self.x, self.y, player.x, player.y)
-----X pixels