function Stage5{
	if(phase==0){
		SetCommonData("bgx",0);
		SetCommonData("bgy",0);
		PlayMusic( bgmst5 );
		//phase=3;
		//time=2500;
		//phase=6;
		//time=6500;
		phase=1;
		time=0;
	}
	else if(phase==1){
		if(time==0){Tzakogun501(1,19);}
		if(time==30){Tzakogun501(-1,15);}
		
		if(time==120){Tzakoheli1(1,1,12,5,4);}
		if(time==150){CreateEnemyFromFile( zakoheli2, 224+20, -10, 4, 145, -1);}
		if(time==170){CreateEnemyFromFile( zakoheli2, 224-70, -10, 4, 145, 1);}
		
		if(time==190){Tzakoheli1(0,-1,12,5,4);}
		if(time==230){Tzakoheli1(1,-1,12,5,4);}
		if(time==260){CreateEnemyFromFile( zakoheli2, 224-20, -10, 4, 145, 1);}
		if(time==280){CreateEnemyFromFile( zakoheli2, 224+70, -10, 4, 145, -1);}
		
		if(time==300){Tzakoheli1(0,1,12,5,4);}
		if(time==340){Tzakoheli1(1,1,12,5,4);}
		if(time==370){CreateEnemyFromFile( zakoheli2, 224+20, -10, 4, 145, -1);}
		if(time==390){CreateEnemyFromFile( zakoheli2, 224-70, -10, 4, 145, 1);}

		if(time==500){CreateEnemyFromFile( airbig1, 224-300, 50, 4, 0, -1);}
		if(time==250){Tzakotank1(224+480, 420, 148, 7, 4);}
		if(time==230){Tzakotank1(224+480, 360, 148, 7, 4);}
		if(time==390){Tzakotank2(224, 780, 32, 8, 4);}
		if(time==380){Tzakotank1(224, 720, 32, 9, 4);}
		if(time==1000){Tzakoheli1(1,1,12,20,4);}
		
		if(time==1000){Tzakogun501(-1,18);}
		if(time==1030){Tzakogun501(1,14);}
		
		if(time==1250){Tzakoheli1(0,-1,12,5,4);}
		if(time==1290){Tzakoheli1(1,-1,12,5,4);}
		if(time==1320){CreateEnemyFromFile( zakoheli2, 224-20, -10, 4, 145, 1);}
		if(time==1340){CreateEnemyFromFile( zakoheli2, 224+70, -10, 4, 145, -1);}
		
		if(time==1360){Tzakoheli1(0,1,12,5,4);}
		if(time==1400){Tzakoheli1(1,1,12,5,4);}
		if(time==1430){CreateEnemyFromFile( zakoheli2, 224+20, -10, 4, 145, -1);}
		if(time==1450){CreateEnemyFromFile( zakoheli2, 224-70, -10, 4, 145, 1);}
		
		if(time==1480){CreateEnemyFromFile( airbig1, 224+300, 50, 4, 0, +1);}
		if(time==1230){Tzakotank2(224-480, 420+660, 32, 7, 4);}
		if(time==1210){Tzakotank1(224-480, 360+660, 32, 7, 4);}
		if(time==1370){Tzakotank2(224, 780+660, 148, 8, 4);}
		if(time==1360){Tzakotank1(224, 720+660, 148, 9, 4);}
		
		if(time==1960){Tzakoair2a(-1,12,12,0);}
		if(time==2160){Tzakoair2a(1,12,12,0);}
		
		if(time==2330){Tzakoair2a(-1,12,8,0);}
		if(time==2380){Tzakoair2a(0,12,8,0);}
		if(time==2430){Tzakoair2a(1,12,8,0);}
		
		if(time==1840){Tzakogun502(1,17);}
		if(time==1870){Tzakogun502(-1,16);}
		if(time==2300){Tzakocannon1b( 224-150, 1750, 0, 7, 4);}
		
				
		if(time<400){
			SetCommonData("bgy",time*1.0);
		}
		else if(time<800){
			SetCommonData("bgy",(time-400)*0.6+400);//240
			SetCommonData("bgx",(time-400)*0.72);
		}
		else if(time<980){
			SetCommonData("bgy",(time-800)*1.0+640);//180
			SetCommonData("bgx",288);
		}
		else if(time<1380){
			SetCommonData("bgy",(time-980)*0.6+820);//240
			SetCommonData("bgx",-(time-980)*0.72+288);
		}
		else if(time<1780){
			SetCommonData("bgy",(time-1380)*0.6+1060);//240
			SetCommonData("bgx",-(time-1380)*0.72);
		}
		else if(time<1960){
			SetCommonData("bgy",(time-1780)*1.0+1300);//180
			SetCommonData("bgx",-288);
		}
		else if(time<2360){
			SetCommonData("bgy",(time-1960)*0.6+1480);//240
			SetCommonData("bgx",(time-1960)*0.72-288);
		}
		else if(time<2520){
			SetCommonData("bgy",(time-2360)*0.5+1720);//80
			SetCommonData("bgx",0);
		}
		if(time==2520){phase=2;time=0;}

	}
	else if(phase==2){
		if(time==100){CreateEnemyFromFile( item, 224, 0, 4, 90, 0);}
		if(time==200){CreateEnemyFromFile( st5semiboss1, 224, -150, 0, 0, 0);}
		
		if(time==400){Tzakogun504(1970,1,6);}
		if(time==460){Tzakogun503(1970,1,6);}
		if(time==450){Tzakocannon1a(224-160, 2220, 1, 4, 4);}
		if(time==700){Tzakogun505();}
		if(time==500){Tzakogun506();}
		
		if(time==620){Tzakogun504(2390,-1,11);}
		if(time==680){Tzakogun503(2390,-1,11);}
		if(time==830){Tzakoheli1(0,-1,10,15,4);}
		if(time==980){Tzakoheli1(0,1,10,5,4);}
		if(time==1020){Tzakoheli1(1,1,10,5,4);}
		if(time==1050){CreateEnemyFromFile( tankbig1, 224+120, 2500, 0, 0, 0);}
		if(time==1330){Tzakoheli1(0,-1,10,10,4);}
		if(time==1000){Tzakocannon1a(224-160, 2500, -1, 5, 4);}
		if(time==1100){CreateEnemyFromFile( zakocannon2, 224-20, 2590, 4, 0, 1);}
		
		if(time==1320){Tzakogun504(2810,1,11);}
		if(time==1380){Tzakogun503(2810,1,11);}
		if(time==1540){Tzakoheli1(0,1,10,5,4);}
		if(time==1580){Tzakoheli1(1,1,10,5,4);}
		if(time==1680){Tzakoheli1(0,-1,10,5,4);}
		if(time==1720){Tzakoheli1(1,-1,10,5,4);}
		if(time==1750){CreateEnemyFromFile( tankbig1, 224-120, 2920, 0, 0, 0);}
		if(time==1800){CreateEnemyFromFile( zakocannon2, 224+30, 2920, 4, 0, 1);}
		if(time==1820){CreateEnemyFromFile( zakocannon2, 224+135, 2920, 4, 0, 1);}
		if(time==1900){Tzakogun507();}
		if(time==2000){Tzakoheli1(0,1,10,5,4);}
		if(time==2040){Tzakoheli1(1,1,10,5,4);}
		if(time==2140){Tzakoheli1(0,-1,10,10,4);}
		if(time==2300){CreateEnemyFromFile( item, 224, 0, 4, 90, 0);}
		if(time==2400){CreateEnemyFromFile( st5semiboss2, 224+350, 60, 0, 0, 0);}
		
		if(time==2100){Tzakogun508();}
		
		if(time<2750){
			SetCommonData("bgy",time*0.6+1800);//1650
			SetCommonData("bgx",0);
		}
		if(time==2750){phase=3;time=0;}
	}
	else if(phase==3){
		
		if(GetCommonData("haya")==1){
			if(time==150){CreateEnemyFromFile( air2, 224+110, -50, 4, 1, -1);}
			if(time==300){CreateEnemyFromFile( air2, 224-110, -50, 4, 1, +1);}
			if(time==450){CreateEnemyFromFile( air2, 224+150, -50, 4, 1, -1);}
			if(time==600){CreateEnemyFromFile( air2, 224-150, -50, 4, 1, +1);}
		}
		if(time==750){CreateEnemyFromFile( air2, 224+260, 150, 4, 0, -1);}
		if(time==880){CreateEnemyFromFile( air2, 224-260, 150, 4, 0, 1);}
		if(time==1010){CreateEnemyFromFile( air2, 224+280, 180, 4, 0, -1);}
		if(time==1140){CreateEnemyFromFile( air2, 224-280, 180, 4, 0, 1);}
		
		if(time==750){Tzakogun509();}
		
		if(time==1250){CreateEnemyFromFile( item, 224, 0, 4, 90, 0);}
		if(time==1160){CreateEnemyFromFile( st5semiboss3, -624+224, 3450+250, 2, 0, 0);}
		if(GetCommonData("haya")==1){
			if(time==2150){CreateEnemyFromFile( air1, 224+50, -30, 4, 90, 1);}
			if(time==2220){CreateEnemyFromFile( air1, 224-130, -30, 4, 90, 1);}
			if(time==2290){CreateEnemyFromFile( air1, 224-50, -30, 4, 90, 1);}
			if(time==2360){CreateEnemyFromFile( air1, 224+130, -30, 4, 90, 1);}
			if(time==2430){CreateEnemyFromFile( air1, 224+50, -30, 4, 90, 1);}
			if(time==2500){CreateEnemyFromFile( air1, 224-130, -30, 4, 90, 1);}
			if(time==2570){CreateEnemyFromFile( air1, 224-50, -30, 4, 90, 1);}
			if(time==2640){CreateEnemyFromFile( air1, 224+130, -30, 4, 90, 1);}
		}
		
		if(time==2300){Tzakocannon1b(-624+224+160, 2080, 90, 3, 4);}
		if(time==2300){Tzakocannon1b(-624+224-160, 2080, 90, 3, 4);}
		if(time==2800){Tzakogun512(-250,3);}
		if(time==2700){Tzakocannon1a(-150, 2090, -1, 5, 4);}
		if(time==2750){Tzakoheli1(0,0,10,7,4);}
		if(time==2810){Tzakoheli1(0,-1,10,5,4);}
		if(time==2840){Tzakoheli1(1,-1,10,5,4);}
		//if(time==2900){Tzakoheli1(1,1,10,5,4);}
		//if(time==2900){Tzakoheli3(224-140, 0, 60, 12, 5, 0);}
		//if(time==3050){Tzakoheli3(224+140, 0, 120, 12, 5, 0);}
		if(time==2700){Tzakogun512(220,5);}
		
		if(time==2900){CreateEnemyFromFile( air3, 224-250, 60, 3, 20, -1);}
		if(time==3130){CreateEnemyFromFile( air3, 224+250, 60, 3, 160, +1);}
		if(time==3240){CreateEnemyFromFile( air3, 224-250, 60, 3, 20, -1);}
		
		if(time==2990){Tzakotank1(75, 2400, 90, 8, 4);}
		if(time==3030){Tzakotank1(135, 2400, 90, 8, 4);}
		//if(time==2850){Tzakogun510();}
		if(time==3100){Tzakocannon1a(230, 2090, -1, 5, 4);}
		if(time==3400){Tzakoheli3(224+140, 0, 120, 12, 5, 0);}
		
		if(time==3500){Tzakogun511();}
		if(time==3550){Tzakoheli3(224-260, 180, 0, 12, 6, 0);}
		if(time==3800){Tzakoheli3(224-140, 0, 60, 12, 6, 0);}
		if(time==3900){Tzakocannon1a(-150, 2930, -1, 5, 4);}
		if(time==4000){Tzakoheli3(224-90, 0, 90, 12, 6, 0);}
		if(time==4150){Tzakoheli3(224+90, 0, 90, 12, 6, 0);}
		
		if(time==4100){Tzakogun513();}
		if(time==4400){Tzakoheli3(224+260, 180, 180, 12, 6, 0);}
		
		if(time==3850){Tzakogun514();}
		
		if(time<1560){
			SetCommonData("bgy",3450);
			SetCommonData("bgx",-time*0.4);//624
		}
		else if(time<2760){
			SetCommonData("bgy",-(time-1560)*1.0+3450);//1200
			SetCommonData("bgx",-624);
		}
		else if(time<3260){
			if(time<2820){//E
				SetCommonData("bgy",-(time-2760)*1.0+2250);//60
			}
			else if(time<3260){//E
				SetCommonData("bgy",2190);
			}
			SetCommonData("bgx",(time-2760)*0.96-624);//576
		}
		else if(time<4560){
			SetCommonData("bgy",(time-3260)*0.9+2190);//1170
			if(time<3360){//E
				SetCommonData("bgx",(time-3260)*0.96-144);//96
			}
			else if(time<3500){//
				SetCommonData("bgx",-48);
			}
			else if(time<3900){//
				SetCommonData("bgx",-(time-3500)*0.96-48);//384
			}
			else if(time<4110){//
				SetCommonData("bgx",-432);
			}
			else if(time<4560){//E
				SetCommonData("bgx",(time-4110)*0.96-432);//432
			}
		}
		if(time==4560){phase=4;time=0;}
	}
	else if(phase==4){
		if(time==0){CreateEnemyFromFile( air4, 224-120, -30, 0, 90, 2);}
		if(time==120){CreateEnemyFromFile( air4, 224-20, -30, 0, 90, 2);}
		if(time==240){CreateEnemyFromFile( air4, 224+80, -30, 0, 90, 2);}
		if(time==360){CreateEnemyFromFile( air4, 224-100, -30, 0, 90, 2);}
		if(time==480){CreateEnemyFromFile( air4, 224+0, -30, 0, 90, 2);}
		
		if(time==820){CreateEnemyFromFile( item, 224, 0, 4, 90, 0);}
		
		if(time<850){
			SetCommonData("bgy",3360);
			SetCommonData("bgx",time*0.96);
		}
		if(time==850){phase=5;time=0;}
	}
	else if(phase==5){
		
		if(time==115){Tzakoair2a(0,30,21,0);}
		if(time==100){CreateEnemyFromFile( airbig2, 224-80, -80, 0, 0, -1);}
		if(time==130){Tzakoair2a(+1,30,7,0);}
		if(time==280){CreateEnemyFromFile( airbig2, 224+80, -80, 0, 0, +1);}
		if(time==340){Tzakoair2a(-1,30,5,0);}
		if(time==420){CreateEnemyFromFile( airbig2, 224-80, -80, 0, 0, -1);}
		if(time==490){Tzakoair2a(+1,30,4,0);}
		if(time==520){CreateEnemyFromFile( airbig2, 224+80, -80, 0, 0, +1);}
		if(time==610){Tzakoair2a(-1,30,4,0);}
		if(time==830){CreateEnemyFromFile( st5semiboss4, 224+320, 250, 0, 0, 0);}
		
		if(GetCommonData("haya")==1){
			if(time==1600){CreateEnemyFromFile( airbig2, 224-80, -80, 0, 0, -1);}
			if(time==1810){CreateEnemyFromFile( airbig2, 224+80, -80, 0, 0, +1);}
			if(time==2020){CreateEnemyFromFile( airbig2, 224-80, -80, 0, 0, -1);}
			if(time==2230){CreateEnemyFromFile( airbig2, 224+80, -80, 0, 0, +1);}
		}
		
		if(time==1615){Tzakoair2b(0,30,28,0);}
		if(time==1630){Tzakoair2b(+1,30,6,0);}
		if(time==1840){Tzakoair2b(-1,30,6,0);}
		if(time==2050){Tzakoair2b(+1,30,6,0);}
		if(time==2260){Tzakoair2b(-1,30,6,0);}
		
		if(time==2430){Tzakoheli2(20,18,4);}

		
		if(time==2160){Tzakotank1(816+224+240, 1490, 180, 7, 4);}
		if(time==2190){Tzakotank1(816+224-240, 1530, 0, 7, 4);}
		if(time==2220){Tzakotank1(816+224+240, 1570, 180, 7, 4);}
		if(time==2250){Tzakotank1(816+224-240, 1610, 0, 7, 4);}
		
		
		if(time<50){
			SetCommonData("bgy",3360-time*0.6);//30
			SetCommonData("bgx",816);
		}
		else if(time<100){
			SetCommonData("bgy",3330-(time-50)*1.2);//60
			SetCommonData("bgx",816);
		}
		else if(time<200){
			SetCommonData("bgy",3270-(time-100)*3.0);//300
			SetCommonData("bgx",816);
		}
		else if(time<2300){
			SetCommonData("bgy",2970-(time-200)%60*4.0);//0
			SetCommonData("bgx",816);
		}
		else if(time<2600){
			SetCommonData("bgy",2970-(time-2300)*4.0);//1200
			SetCommonData("bgx",816);
		}
		else if(time<2630){
			SetCommonData("bgy",1770-(time-2600)*1.0);//30
			SetCommonData("bgx",816);
		}
		else if(time<2660){
			SetCommonData("bgy",1740-(time-2630)*0.2);//6
			SetCommonData("bgx",816);
		}
		if(time==2660){phase=6;time=0;}
	}
	else if(phase==6){
		if(time==220){Tzakoair1(224+224,0,70,12,2,1,20,8,4)}
		if(time==230){Tzakoair1(224+224,0,110,12,2,1,20,8,4)}
		if(time==320){Tzakoair1(224-224,0,70,12,2,-1,20,8,4)}
		if(time==330){Tzakoair1(224-224,0,110,12,2,-1,20,8,4)}
		
		if(time==420){Tzakoair1(224+70,-10,0,0,1,1,20,8,4)}
		if(time==430){Tzakoair1(224+110,-10,0,0,1,1,20,8,4)}
		if(time==520){Tzakoair1(224-70,+10,0,0,1,-1,20,8,4)}
		if(time==530){Tzakoair1(224-110,+10,0,0,1,-1,20,8,4)}
		
		if(time==620){Tzakoair1(224+224,0,60,12,3,1,20,8,4)}
		if(time==630){Tzakoair1(224+224,0,100,12,3,1,20,8,4)}
		if(time==720){Tzakoair1(224-224,0,60,12,3,-1,20,8,4)}
		if(time==730){Tzakoair1(224-224,0,100,12,3,-1,20,8,4)}
		
		if(time==700){Tzakoair1(224+224,0,60,12,4,1,20,8,4)}
		if(time==710){Tzakoair1(224+224,0,100,12,4,1,20,8,4)}
		if(time==800){Tzakoair1(224-224,0,60,12,4,-1,20,8,4)}
		if(time==810){Tzakoair1(224-224,0,100,12,4,-1,20,8,4)}
		
		if(time==90){CreateEnemyFromFile( tank1, 816+224-260, 1950, 4, 0, 1000);}
		if(time==300){CreateEnemyFromFile( tank1, 816+224-260, 1950, 4, 0, 1000);}
		if(time==610){CreateEnemyFromFile( tank1, 816+224-260, 1950, 4, 0, 1000);}
		
		if(time==330){CreateEnemyFromFile( tank1, 816+224+260, 2130, 4, 180, 1000);}
		if(time==540){CreateEnemyFromFile( tank1, 816+224+260, 2130, 4, 180, 1000);}
		if(time==750){CreateEnemyFromFile( tank1, 816+224+260, 2130, 4, 180, 1000);}
		
		if(time==1050){CreateEnemyFromFile( item, 224, 0, 4, 90, 0);}
		
		
		if(time==1200){CreateEnemyFromFile( izumi, 816+224+160, 2460, 0, 0, 1);}
		if(time==1200){CreateEnemyFromFile( izumi, 816+224-160, 2460, 0, 0, 1);}
		if(time==1200){Tzakogun515();}
		if(time==1330){Tzakogun516();}
		if(time==1500){Tzakogun517();}
		if(time==1700){Tzakogun518();}
		if(time==1850){Tzakogun519();}
		if(time==2100){Tzakogun520();}
		
		
		if(time==2380){Tclone1(816+224+240,3160,180,4,2)}
		if(time==2380){Tclone1(816+224-240,3210,0,4,2)}
		if(time==2560){Tzakogun531();}
		if(time==2600){Tzakogun532();}
		if(time==2950){Tzakogun533();}
		if(time==2900){Tclone1(816+224-240,3490,0,6,2)}
		if(time==2900){Tclone1(816+224+240,3540,180,6,2)}
		
		if(time==3400){Tzakogun534();}
		if(time==3500){CreateEnemyFromFile( cannonbig1, 816+224+97, 3850, 4, 0, 0);}
		if(time==3600){CreateEnemyFromFile( cannonbig1, 816+224-97, 3900, 4, 0, 0);}
		
		if(time==3900){Tzakogun535();}
		if(time==4750){Tzakogun540();}
		
		if(time==5050){Tzakogun541();}
		
		if(time==5000){Tzakogun542(4760,1);}
		if(time==5200){Tzakogun542(4880,-1);}
		if(time==5400){Tzakogun542(5000,1);}
		if(time==5600){Tzakogun542(5120,-1);}
		
		if(time==6250){CreateEnemyFromFile( item, 224-70, 0, 4, 90, 0);}
		if(time==6320){CreateEnemyFromFile( item, 224+70, 0, 4, 90, 0);}
		
		if(time==6300){DeleteMusic(bgmst5);PlaySE( se4 );}
		if(time==6660){PlayMusic(bgmboss);}
		
		if(time==6520){CreateEnemyBossFromFile( st5boss1, 224, 6085, 0, 0, 0);}
		
		if(time<20){
			SetCommonData("bgy",1734+time*0.3);//6
			SetCommonData("bgx",816);
		}
		else if(time<2520){
			SetCommonData("bgy",1740+(time-20)*0.6);//1500
			SetCommonData("bgx",816);
		}
		else if(time<3520){
			SetCommonData("bgy",3240+(time-2520)*0.5);//500
			SetCommonData("bgx",816);
		}
		else if(time<6520){
			SetCommonData("bgy",3740+(time-3520)*0.6);//1800
			SetCommonData("bgx",816);
		}
		else if(time<6620){
			SetCommonData("bgy",5540+(time-6520)*6.4);//640
			SetCommonData("bgx",816);
		}
		else if(time<6720){
			SetCommonData("bgy",6180+(time-6620)*0.6);//60
			SetCommonData("bgx",816);
		}
		/*
		else if(time<7020){
			SetCommonData("bgy",5180+(time-5920)*0.8);//
			SetCommonData("bgx",816);
		}
		*/
		
		if(time>7000&&GetCommonData("bossphase")<=2){
			phase=7;time=0;
		}
	}
	else if(phase==7){
		
		if(GetCommonData("bossphase")>0){
			if(time<1500){
				SetCommonData("bgy",6240+time*0.6);//900
				SetCommonData("bgx",816);
			}
			else{
				SetCommonData("bgy",7140+((time-1500)*0.6)%150);//150
				SetCommonData("bgx",816);
			}
		}
		
		if(GetCommonData("bossphase")==0){DeleteMusic(bgmboss);}
		if(IsBossExisting==false&&clear==false){Tclear3;}
	}
	if(phase==10){
		
		if(time==30){CreateEnemyFromFile( air5, 224+100, 150, 0, 90, 0);}
		if(time==50){CreateEnemyFromFile( air5, 224-0, 100, 0, 90, 0);}
		if(time==70){CreateEnemyFromFile( air5, 224-100, 150, 0, 90, 0);}
		
		if(time==230){Tzakoair2a(1,18,7,0);}
		if(time==236){Tzakoair2a(-1,18,7,0);}
		if(time==242){Tzakoair2a(0,18,7,0);}

		if(time==330){CreateEnemyFromFile( air5, 224-120, 100, 0, 90, 0);}
		if(time==350){CreateEnemyFromFile( air5, 224-40, 150, 0, 90, 0);}
		if(time==370){CreateEnemyFromFile( air5, 224+40, 150, 0, 90, 0);}
		if(time==390){CreateEnemyFromFile( air5, 224+120, 100, 0, 90, 0);}

		if(time==300){CreateEnemyFromFile( senkan3, 224-50, 2950, 0, 90, 1);}
		if(time==300){CreateEnemyFromFile( izumi, 224-50, 2950, 0, 0, 1);}
		if(time==600){CreateEnemyFromFile( air5, 224+20, 200, 0, 90, 0);}
		if(time==650){CreateEnemyFromFile( air5, 224+100, 170, 0, 90, 0);}
		if(time==700){CreateEnemyFromFile( air5, 224+60, 140, 0, 90, 0);}
		if(time==750){CreateEnemyFromFile( air5, 224+140, 110, 0, 90, 0);}
		if(time==800){CreateEnemyFromFile( air5, 224-120, 80, 0, 90, 0);}
		
		if(time==700){CreateEnemyFromFile( senkan3, 224+50, 3190, 0, 90, 1);}
		if(time==700){CreateEnemyFromFile( izumi, 224+50, 3190, 0, 0, 1);}
		if(time==1000){CreateEnemyFromFile( air5, 224-20, 200, 0, 90, 0);}
		if(time==1050){CreateEnemyFromFile( air5, 224-100, 170, 0, 90, 0);}
		if(time==1100){CreateEnemyFromFile( air5, 224-60, 140, 0, 90, 0);}
		if(time==1150){CreateEnemyFromFile( air5, 224-140, 110, 0, 90, 0);}
		if(time==1200){CreateEnemyFromFile( air5, 224+120, 80, 0, 90, 0);}
		
		if(time==1100){CreateEnemyFromFile( senkan3, 224-50, 3430, 0, 90, 1);}
		if(time==1100){CreateEnemyFromFile( izumi, 224-50, 3430, 0, 0, 1);}
		if(time==1400){CreateEnemyFromFile( air5, 224+20, 200, 0, 90, 0);}
		if(time==1450){CreateEnemyFromFile( air5, 224+100, 170, 0, 90, 0);}
		if(time==1500){CreateEnemyFromFile( air5, 224+60, 140, 0, 90, 0);}
		if(time==1550){CreateEnemyFromFile( air5, 224+140, 110, 0, 90, 0);}
		
		if(time==1500){CreateEnemyFromFile( senkan3, 224+50, 3670, 0, 90, 1);}
		if(time==1500){CreateEnemyFromFile( izumi, 224+50, 3670, 0, 0, 1);}
		if(time==1800){CreateEnemyFromFile( air5, 224-20, 200, 0, 90, 0);}
		if(time==1850){CreateEnemyFromFile( air5, 224-100, 170, 0, 90, 0);}
		if(time==1900){CreateEnemyFromFile( air5, 224-60, 140, 0, 90, 0);}
		if(time==1950){CreateEnemyFromFile( air5, 224-140, 110, 0, 90, 0);}

		if(time==2230){CreateEnemyFromFile( air5, 224-110, 170, 0, 90, 0);}
		if(time==2250){CreateEnemyFromFile( air5, 224-35, 130, 0, 90, 0);}
		if(time==2270){CreateEnemyFromFile( air5, 224+35, 130, 0, 90, 0);}
		if(time==2290){CreateEnemyFromFile( air5, 224+110, 170, 0, 90, 0);}
		
		if(time==2310){CreateEnemyFromFile( air5, 224+140, 120, 0, 90, 0);}
		if(time==2330){CreateEnemyFromFile( air5, 224+70, 80, 0, 90, 0);}
		if(time==2350){CreateEnemyFromFile( air5, 224+0, 120, 0, 90, 0);}
		if(time==2370){CreateEnemyFromFile( air5, 224-70, 80, 0, 90, 0);}
		if(time==2390){CreateEnemyFromFile( air5, 224-140, 120, 0, 90, 0);}
		if(time==2500){CreateEnemyFromFile( item, 224, 0, 4, 90, 0);}

		if(time==2900){CreateEnemyBossFromFile( st4boss, 224, -150, 0, 0, 0);}
		
		if(time==2700){DeleteMusic(bgmst3);PlaySE( se4 );}
		if(time==2900){PlayMusic(bgmboss);}

		if(time<5000){SetCommonData("bgx",0);}
		
		if(time<2900){SetCommonData("bgy",2650+time*0.6);}//1320
		else if(time<3000){SetCommonData("bgy",4390+(time-2900)*1.2);}
		else if(time<3100){SetCommonData("bgy",4510+(time-3000)*2);}
		else if(time>=3100){SetCommonData("bgy",4710+((time-3100)*4)%360);}

		if(time>3500&&GetCommonData("bossphase")==0){DeleteMusic(bgmboss);}
		if(time>3500&&IsBossExisting==false&&clear==false&&(time-3100)%45){Tclear;}
	}
}