/// @description Insert description here
// You can write your code in this editor
if hp<=0 then {if irandom(10)>7 then instance_create_depth(x,y,1,obj_heal) instance_create_depth(x,y,-1,obj_explosives) instance_destroy()}
mp_potential_step_object(player.x,player.y,sped/2,obj_wall)


if point_distance(x,y,obj_gg.x,obj_gg.y)<400 then 
{
	mp_potential_step_object(player.x,player.y,sped/2,obj_wall)
	if bombing=0 then {bombing=1 }
}
if bombing=1 then timer-=1
if timer=0 then {instance_create_depth(x,y,-1,obj_explosives) instance_destroy()}