
script_enemy fam1{let fi=0;
    let gr = GetCurrentScriptDirectory ~ "circle2.png";
  let dir=0;
  let r=80;
  @Initialize{
  SetLife(2000);
  LoadGraphic(gr);
  main;
  }
  @MainLoop{yield;
  
  }
  @DrawLoop{
   SetTexture(gr);SetAlpha(150);
 SetGraphicAngle(0,0,-dir*2);
 
	SetGraphicRect(0,0,128,127);
	SetGraphicScale(0.5,0.5);
	DrawGraphic(GetX,GetY);
	
	SetTexture(gr);SetAlpha(130);
 SetGraphicAngle(0,0,dir);
	SetGraphicRect(0,0,128,127);
	SetGraphicScale(0.3,0.3);
	DrawGraphic(GetX,GetY);
	

  }
  @Finalize{
  
  }
  let angle=0;
  task main{
  fire;
  
  loop{yield;
  
  SetMovePosition03(GetEnemyX-GetCenterX/3,GetEnemyY,15,2);
  
  
  }}
  
 
  let angle2=0;
  task f{
  
  fi=1;
  
  }
  task fg{
  loop{yield;a++;}
  }
  let a=0;let s=0;let g=0;
  
  task fir2{
  wait(240);
  
  
  
  
  
  
  }
  //
  let s2=0;
  let a2=0;
  
   task fir22{
  wait(240);
 
  
  
  
  
  
  }
  
  let aq=0;
  //
  
  
 
 let yu=0;let yu2=0;
  task fire{
  
  
  
  
  }
  
   function wait(t){
    loop(t){yield;}
  }
  }
  

