/// @description Insert description here
// You can write your code in this editor
image_alpha-=0.001
if image_alpha<=0 then instance_destroy()
if player.hp<100 and point_distance(x,y,player.x,player.y)<400 and collision_line(x,y,player.x,player.y,obj_wall,1,0)=noone then {speed=10 direction=point_direction(x,y,player.x,player.y)}