script_enemy_main{


    let imgEnemy ="script\DanMUku\Stage3\Image\luidi.png";
    let pasTrois = true;

@Initialize{
    SetLife(1);
SetInvincibility(150);
    LoadGraphic(imgEnemy);
	SetMovePosition02(GetCenterX+100, GetCenterY - 70, 60);

 }
@MainLoop{

	if (OnEvent){
		if (GetEventStep==3&&pasTrois) {
			SetMovePosition02(0, GetCenterY - 60, 60);
			pasTrois = false;
		}	
	}

	yield;

 }
@DrawLoop{
            SetColor(255,255,255);
            SetRenderState(ALPHA);
            SetAlpha(255);
            SetTexture(imgEnemy);
            SetGraphicRect(0, 0, 33, 33);
            DrawGraphic(GetX,GetY);

 }
@Finalize{
     DeleteGraphic(imgEnemy);
 }

}
