task Area1Stage2{
	bgmovX=0;
	bgmovY=0;
	StageInit;
	SetCommonData("AREA1ROBOBGM", "FALSE");
	loop(100){yield;}
	CreateEnemyFromFile(GCSD~"A_1/boss1_talk01.txt", GetCenterX, GetClipMinY-50, 0, 0, 0);
	SetCommonData("AREA1ROBOBGM", "FALSE");
	while(GetCommonDataDefault("AREA1ROBOBGM", "FALSE")!="TRUE"){yield;}
	PlayMusic(ar1bgm2);
	while(GetEnemyNum!=0){yield;}
	loop(100){yield;}
	CreateEnemyFromFile(GCSD~"A_1/talk03.txt", GetClipMinX-1500, GetClipMinY-1500, 0, 0, 0);
	while(GetEnemyNum!=0){yield;}
	loop(100){yield;}
	StageClear;
}

sub Area1Stage2BG{

	sub Draw{
		if(GetCommonDataDefault("AREA1ROBOBGM", "FALSE")=="TRUE"){bgmovX+=12;}else{bgmovX+=1;}
		SetTexture(ar1bg1);
		SetGraphicRect(bgmovX, 0, 768+bgmovX, 768);
		SetGraphicScale(1, 1);
		SetGraphicAngle(90, 0, 0);
		SetAlpha(198);
		DrawGraphic3D(-200, -100, 0);
	}
	
	BackdropColor = [0, 0, 0];
	FogColor = [255, 255, 255];
	FogMin = 0;
	FogMax = 10000;
	CamX = 0;
	CamY = 0;
	CamZ = 0;
	CamDist = 400;
	CamRot = 0;
	CamLift = 50;
	Draw;
}