
script_enemy_main
{    
   let imgEnemy="script\DanMUku\Stage5\Image\fully.png";
   let count=0;
    let z = 0;
    let w = 0.5;

   @Initialize
   {
            LoadGraphic(imgEnemy);
            SetLife(1);
            SetEnemyMarker(true);
            SetInvincibility(150);
            CreateEventFromScript("name");
   }
   
   @MainLoop
   {
	if (!OnEvent) {
		AddLife(-1);
	}

	if (count==60){
		SetMovePosition02(GetCenterX, GetCenterY - 100, 60);
	}


      count++;
   }
   
   @Finalize
   {
      DeleteGraphic(imgEnemy);
   }
   
   @DrawLoop
   {
            SetColor(255,255,255);
            SetRenderState(ALPHA);
            SetAlpha(255);
            SetTexture(imgEnemy);
            SetGraphicRect(0, 0, 35, 46);
            DrawGraphic(GetX,GetY+z);
     if(z==10){w=-0.5;}
     if(z==-10){w=0.5;}
	z+=w;

   }
}

script_event name{

  let fully = "script\DanMUku\Stage5\Image\fullycutin.png";

@Initialize{
  LoadGraphic("script\DanMUku\Joueur\KorA\Kordialogue.png");
  LoadGraphic(fully);
 }


@MainLoop{   
 SetChar(LEFT, "script\DanMUku\Joueur\KorA\Kordialogue.png");                   
SetGraphicRect(LEFT, 0, 0, 121, 214);        
SetChar(RIGHT, fully);
SetGraphicRect(RIGHT, 0, 0, 121, 214);

MoveChar(LEFT, BACK);
MoveChar(RIGHT, FRONT);
TextOutA("\c[RED] Still here?");
TextOutA("\c[RED] Commandant Machin, put \nthe machine at maximum power!");
TextOutA("\c[RED] Do it!");
TextOutA("\c[RED] And come help me, dangit!");
PlayMusic("script\DanMUku\Stage5\Fulllast.mp3");
End;


}

 @Finalize{
  DeleteGraphic("player\korHosik\Kordialogue.png");
  DeleteGraphic(fully);
 }
}

