
script_enemy_main
{    
    let imgEnemy ="script\DanMUku\Stage2\Image\Agent.png";
    let count = -127;
    let a = 32;
    let b = 64;
    let o = 0;

   @Initialize
   {
            LoadGraphic(imgEnemy);
            SetLife(1);
            SetTimer(3);
            SetInvincibility(128);
            SetEnemyMarker(true);
            SetMovePosition02(GetCenterX, GetCenterY-100, 120);        
   }
   
   @MainLoop
   {
if(count<0)
{
o+=2;
}
count++;
   }
   @Finalize
   {
      DeleteGraphic(imgEnemy);
   }
   
   @DrawLoop
   {
            SetColor(255,255,255);
            SetRenderState(ALPHA);
            SetAlpha(o);
            SetTexture(imgEnemy);
            SetGraphicRect(a, 0, b, 32);
            DrawGraphic(GetX,GetY);
   }

}
