script_enemy_main{

let time=0;
let miny=GetClipMinY; let maxy=GetClipMaxY; let minx=GetClipMinX; let maxx=GetClipMaxX;
let cx=GetCenterX; let cy=GetCenterY;

let stage=GetArgument;

@Initialize{
	SetLife(100);
	SetScore(100);
}

@MainLoop{

if(stage==1){

//Background	
if(time==0){
	DeleteGraphic("\script\Images\3DBackground\Stage 1\Bush.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 1\Path.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 1\Trees.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 1\Canopy1.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 1\Canopy2.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 1\Canopy3.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 1\Ceiling.png");

	DeleteGraphic("\script\Images\3DBackground\Lightray.png");
	DeleteGraphic("\script\Images\3DBackground\Wall.png");
	DeleteGraphic("\script\Images\3DBackground\Leaf.png");
vsize+=30;
}

//Sounds
if(time==10){
	DeleteSE("script\SoundEffects\enemydeath1.wav");
	
	DeleteSE("script\SoundEffects\shots3.wav");
	DeleteSE("script\SoundEffects\shots5.wav");
	DeleteSE("script\SoundEffects\shotm1.wav");
	DeleteSE("script\SoundEffects\shots6.wav");
vsize+=30;
}

//Sprites
if(time==20){
	DeleteGraphic("\script\Images\CharacterSprites\Tomoko.png");
	DeleteGraphic("\script\Images\CharacterSprites\Setsuko.png");
	DeleteGraphic("\script\Images\CharacterSprites\Shinichi.png");
vsize+=30;
}

//Music
if(time==30){
	LoadMusic("script\Music\Boss 1.wav");
	LoadMusic("script\Music\Stage 1.wav");
vsize+=30;
}

//Enemies
if(time==40){
	DeleteGraphic("\script\Images\Enemies\Fairy1-01.png");
	DeleteGraphic("\script\Images\Enemies\Fairy1-02.png");
	DeleteGraphic("\script\Images\Enemies\Fairy1-08.png");
	DeleteGraphic("\script\Images\Enemies\Fairy2-12.png");
	DeleteGraphic("\script\Images\Enemies\Fairy3-15.png");
	DeleteGraphic("\script\Images\Enemies\Birds1.png");

	LoadUserShotData("script\Shots\ShotsEnemies1.txt");
vsize+=30;
}

//Events
if(time==50){
	DeleteGraphic("\script\Images\OtherEffects\DescriptionL1.png");
	DeleteGraphic("\script\Images\OtherEffects\BarL1.png");

	DeleteGraphic("\script\Images\Text\Names.png");

	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal01.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal02.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal03.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal04.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal05.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal06.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal07.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal08.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal09.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal10.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal11.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal12.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal13.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal14.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal15.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal16.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal17.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal18.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal19.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal20.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal21.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal22.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal23.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal24.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal25.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal26.png");
	
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal01.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal02.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal03.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal04.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal05.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal06.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal07.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal08.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal09.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal10.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal11.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal12.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal13.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal14.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal15.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal16.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal17.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal18.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal19.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal20.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal21.png");

	DeleteGraphic("\script\Images\CharacterBig\SetsukoNormal01.png");
	DeleteGraphic("\script\Images\CharacterBig\SetsukoNormal02.png");
	DeleteGraphic("\script\Images\CharacterBig\SetsukoNormal03.png");

	DeleteGraphic("\script\Images\CharacterBig\ShinichiNormal01.png");
	DeleteGraphic("\script\Images\CharacterBig\ShinichiNormal02.png");
	DeleteGraphic("\script\Images\CharacterBig\ShinichiNormal03.png");

vsize+=30;
}

//Spellcards
if(time==60){
	//Other Effects
	DeleteGraphic("\script\Images\OtherEffects\Fan1.png");
	DeleteGraphic("\script\Images\OtherEffects\Cannon.png");

	//Backgrounds
	DeleteGraphic("\script\Images\BackgroundLayers\tomoko1.png");
	DeleteGraphic("\script\Images\BackgroundLayers\tomoko2.png");
	DeleteGraphic("\script\Images\BackgroundLayers\setsuko1.png");
	DeleteGraphic("\script\Images\BackgroundLayers\shinichi1.png");

	//Shots
	DeleteSE("script\SoundEffects\magics1.wav");
	DeleteSE("script\SoundEffects\magics5.wav");
	DeleteSE("script\SoundEffects\shots3.wav");
	DeleteSE("script\SoundEffects\shots4.wav");
	DeleteSE("script\SoundEffects\shots5.wav");
	DeleteSE("script\SoundEffects\shots6.wav");
	DeleteSE("script\SoundEffects\shotm2.wav");
	DeleteSE("script\SoundEffects\shotm4.wav");
	DeleteSE("script\SoundEffects\shotb2.wav");
	DeleteSE("script\SoundEffects\shotb5.wav");
	DeleteSE("script\SoundEffects\shotb6.wav");

	//Other Sounds
	DeleteSE("script\SoundEffects\fan1.wav");
	DeleteSE("script\SoundEffects\mechanic1normal.wav");
	DeleteSE("script\SoundEffects\mechanic1long.wav");
vsize+=30;
}

if(time==70){
loaded=1;
}

} // STAGE 1

//=========================================================================================================

if(stage==2){

//Background	
if(time==0){
	DeleteGraphic("\script\Images\3DBackground\Stage 1\Path.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 2\Grass.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 2\Mountains1.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 2\Mountains2.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 1\Bush.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 2\Tree.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 2\Rocks.png");
	DeleteGraphic("\script\Images\3DBackground\Sky1.png");

	DeleteGraphic("\script\Images\3DBackground\Lightray.png");
	DeleteGraphic("\script\Images\3DBackground\Wall.png");
	DeleteGraphic("\script\Images\3DBackground\Leaf.png");
vsize+=30;
}

//Sounds
if(time==10){
	DeleteSE("script\SoundEffects\enemydeath1.wav");
vsize+=30;
}

//Sprites
if(time==20){
	DeleteGraphic("\script\Images\CharacterSprites\Youko.png");
	DeleteGraphic("\script\Images\CharacterSprites\Amaya.png");
vsize+=30;
}

//Music
if(time==30){
	LoadMusic("script\Music\Boss 2.wav");
	LoadMusic("script\Music\Stage 2.wav");
vsize+=30;
}

//Enemies
if(time==40){
	DeleteGraphic("\script\Images\Enemies\Fairy1-01.png");
	DeleteGraphic("\script\Images\Enemies\Fairy1-07.png");
	DeleteGraphic("\script\Images\Enemies\Fairy1-09.png");
	DeleteGraphic("\script\Images\Enemies\Fairy2-13.png");
	DeleteGraphic("\script\Images\Enemies\Birds2.png");
	DeleteGraphic("\script\Images\Enemies\Ghosts.png");

	DeleteSE("script\SoundEffects\shots3.wav");
	DeleteSE("script\SoundEffects\shots5.wav");
	DeleteSE("script\SoundEffects\shots6.wav");
	DeleteSE("script\SoundEffects\shotm5.wav");
	DeleteSE("script\SoundEffects\shotb1.wav");
	DeleteSE("script\SoundEffects\shotb6.wav");

	LoadUserShotData("script\Shots\ShotsEnemies2.txt");
vsize+=30;
}

//Events
if(time==50){
	DeleteGraphic("\script\Images\OtherEffects\DescriptionL1.png");
	DeleteGraphic("\script\Images\OtherEffects\BarL1.png");

	DeleteGraphic("\script\Images\Text\Names.png");

	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal01.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal02.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal03.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal04.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal05.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal06.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal07.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal08.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal09.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal10.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal11.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal12.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal13.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal14.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal15.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal16.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal17.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal18.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal19.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal20.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal21.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal22.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal23.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal24.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal25.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal26.png");
	
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal01.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal02.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal03.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal04.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal05.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal06.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal07.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal08.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal09.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal10.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal11.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal12.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal13.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal14.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal15.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal16.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal17.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal18.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal19.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal20.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal21.png");

	DeleteGraphic("\script\Images\CharacterBig\YoukoNormal01.png");
	DeleteGraphic("\script\Images\CharacterBig\YoukoNormal02.png");
	DeleteGraphic("\script\Images\CharacterBig\YoukoNormal03.png");
	DeleteGraphic("\script\Images\CharacterBig\YoukoNormal04.png");
	DeleteGraphic("\script\Images\CharacterBig\YoukoNormal05.png");
	DeleteGraphic("\script\Images\CharacterBig\YoukoNormal06.png");
	
	DeleteGraphic("\script\Images\CharacterBig\AmayaNormal01.png");
	DeleteGraphic("\script\Images\CharacterBig\AmayaNormal02.png");
	DeleteGraphic("\script\Images\CharacterBig\AmayaNormal03.png");
	DeleteGraphic("\script\Images\CharacterBig\AmayaNormal04.png");
	DeleteGraphic("\script\Images\CharacterBig\AmayaNormal05.png");
	DeleteGraphic("\script\Images\CharacterBig\AmayaNormal06.png");
	DeleteGraphic("\script\Images\CharacterBig\AmayaNormal07.png");
	DeleteGraphic("\script\Images\CharacterBig\AmayaNormal08.png");
	
vsize+=30;
}

//Spellcards
if(time==60){
	//Other Effects
	DeleteGraphic("\script\Shots\Biggest.png");

	//Backgrounds
	DeleteGraphic("\script\Images\BackgroundLayers\Youko1b.png");
	DeleteGraphic("\script\Images\BackgroundLayers\Youko1c.png");
	DeleteGraphic("\script\Images\BackgroundLayers\Amaya1.png");
	DeleteGraphic("\script\Images\BackgroundLayers\Amaya2a.png");
	DeleteGraphic("\script\Images\BackgroundLayers\Amaya2b.png");

	//Shots
	DeleteSE("\script\SoundEffects\shots3.wav");
	DeleteSE("\script\SoundEffects\shots7.wav");
	DeleteSE("\script\SoundEffects\shotm3.wav");
	DeleteSE("\script\SoundEffects\shotb5.wav");
	DeleteSE("\script\SoundEffects\lasers1.wav");
	DeleteSE("\script\SoundEffects\spawn1.wav");
	DeleteSE("\script\SoundEffects\charge4.wav");

	//Other Sounds

vsize+=30;
}

if(time==70){
loaded=1;
}

} // STAGE 2

//=========================================================================================================

if(stage==3){

//Background	
if(time==0){
	DeleteGraphic("\script\Images\3DBackground\Stage 3\Floor1.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 3\Floor2.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 3\Floor3.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 3\Wall1.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 3\Wall2.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 3\Wall3a.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 3\Wall3b.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 3\Wall3c.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 3\Wall4a.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 3\Wall4b.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 3\Ceiling1.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 3\Ceiling2.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 3\Ceiling3.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 3\Beam.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 3\Tree.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 3\Grass.png");

	DeleteGraphic("\script\Images\3DBackground\Stage 3\Bush1.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 3\Bush2.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 3\Bush3.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 3\Lantern.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 3\Path.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 3\Rocks.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 3\Bridge.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 3\Bamboo.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 3\Lake.png");

	DeleteGraphic("\script\Images\3DBackground\Lightray.png");
	DeleteGraphic("\script\Images\3DBackground\Wall.png");
vsize+=30;
}

//Sounds
if(time==10){
	DeleteSE("script\SoundEffects\enemydeath1.wav");
vsize+=30;
}

//Sprites
if(time==20){
	DeleteGraphic("\script\Images\CharacterSprites\Ayano.png");
	DeleteGraphic("\script\Images\CharacterSprites\Sayuri.png");
	DeleteGraphic("\script\Images\CharacterSprites\Mai.png");
vsize+=30;
}

//Music
if(time==30){
	LoadMusic("script\Music\Boss 3.wav");
	LoadMusic("script\Music\Stage 3.wav");
vsize+=30;
}

//Enemies
if(time==40){
	DeleteGraphic("\script\Images\Enemies\Fairy1-01.png");
	DeleteGraphic("\script\Images\Enemies\Fairy1-05.png");
	DeleteGraphic("\script\Images\Enemies\Fairy2-13.png");
	DeleteGraphic("\script\Images\Enemies\Fairy3-15.png");
	DeleteGraphic("\script\Images\Enemies\Birds2.png");
	DeleteGraphic("\script\Images\Enemies\Ghosts.png");

	DeleteSE("script\SoundEffects\shots5.wav");
	DeleteSE("script\SoundEffects\shotm1.wav");
	DeleteSE("script\SoundEffects\shotm2.wav");
	DeleteSE("script\SoundEffects\shotm8.wav");
	DeleteSE("script\SoundEffects\shotb1.wav");

	LoadUserShotData("script\Shots\ShotsEnemies3.txt");
vsize+=30;
}

//Events
if(time==50){
	DeleteGraphic("\script\Images\OtherEffects\DescriptionL3.png");
	DeleteGraphic("\script\Images\OtherEffects\BarL3.png");

	DeleteGraphic("\script\Images\Text\Names.png");

	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal01.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal02.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal03.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal04.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal05.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal06.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal07.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal08.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal09.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal10.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal11.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal12.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal13.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal14.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal15.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal16.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal17.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal18.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal19.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal20.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal21.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal22.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal23.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal24.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal25.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal26.png");
	
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal01.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal02.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal03.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal04.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal05.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal06.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal07.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal08.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal09.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal10.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal11.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal12.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal13.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal14.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal15.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal16.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal17.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal18.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal19.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal20.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal21.png");

	DeleteGraphic("\script\Images\CharacterBig\AyanoNormal01.png");
	DeleteGraphic("\script\Images\CharacterBig\AyanoNormal02.png");
	DeleteGraphic("\script\Images\CharacterBig\AyanoNormal03.png");
	DeleteGraphic("\script\Images\CharacterBig\AyanoNormal04.png");
	DeleteGraphic("\script\Images\CharacterBig\AyanoNormal05.png");
	
	DeleteGraphic("\script\Images\CharacterBig\SayuriNormal01.png");
	DeleteGraphic("\script\Images\CharacterBig\SayuriNormal02.png");
	DeleteGraphic("\script\Images\CharacterBig\SayuriNormal03.png");
	DeleteGraphic("\script\Images\CharacterBig\SayuriNormal04.png");
	DeleteGraphic("\script\Images\CharacterBig\SayuriNormal05.png");
	
	DeleteGraphic("\script\Images\CharacterBig\MaiNormal01.png");
	DeleteGraphic("\script\Images\CharacterBig\MaiNormal02.png");
	DeleteGraphic("\script\Images\CharacterBig\MaiNormal03.png");
	DeleteGraphic("\script\Images\CharacterBig\MaiNormal04.png");
	DeleteGraphic("\script\Images\CharacterBig\MaiNormal05.png");

vsize+=30;
}

//Spellcards
if(time==60){
	//Other Effects

	//Backgrounds

	//Shots

	//Other Sounds

vsize+=30;
}

if(time==70){
loaded=1;
}

} // STAGE 3

//=========================================================================================================

if(stage==4){

//Background	
if(time==0){
	DeleteGraphic("\script\Images\3DBackground\Stage 4\Path.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 4\Dirt.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 4\Stalls1.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 4\Stalls2.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 4\Lamps.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 4\Bamboo.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 4\DanceStall1.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 4\DanceStall2.png");
	DeleteGraphic("\script\Images\3DBackground\Extra\Floor1.png");
	DeleteGraphic("\script\Images\3DBackground\Wall.png");
	DeleteGraphic("\script\Images\3DBackground\Sky1.png");
vsize+=30;
}

//Sounds
if(time==10){
	DeleteSE("script\SoundEffects\enemydeath1.wav");
vsize+=30;
}

//Sprites
if(time==20){
	DeleteGraphic("\script\Images\CharacterSprites\Ryo.png");
	DeleteGraphic("\script\Images\CharacterSprites\Kurumi.png");
	DeleteGraphic("\script\Images\CharacterSprites\Hotaru.png");
vsize+=30;
}

//Music
if(time==30){
	LoadMusic("script\Music\Boss 4.wav");
	LoadMusic("script\Music\Stage 4.wav");
vsize+=30;
}

//Enemies
if(time==40){
	DeleteGraphic("\script\Images\Enemies\Fairy1-01.png");
	DeleteGraphic("\script\Images\Enemies\Fairy1-05.png");
	DeleteGraphic("\script\Images\Enemies\Fairy2-12.png");
	DeleteGraphic("\script\Images\Enemies\Fairy3-15.png");
	DeleteGraphic("\script\Images\Enemies\Birds1.png");
	DeleteGraphic("\script\Images\Enemies\Ghosts.png");

	DeleteSE("script\SoundEffects\shots4.wav");
	DeleteSE("script\SoundEffects\shots5.wav");
	DeleteSE("script\SoundEffects\shotm3.wav");
	DeleteSE("script\SoundEffects\shotm5.wav");
	DeleteSE("script\SoundEffects\shotm8.wav");

	LoadUserShotData("script\Shots\ShotsEnemies4.txt");
vsize+=30;
}

//Events
if(time==50){
	DeleteGraphic("\script\Images\OtherEffects\DescriptionL4.png");
	DeleteGraphic("\script\Images\OtherEffects\BarL4.png");

	DeleteGraphic("\script\Images\Text\Names.png");

	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal01.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal02.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal03.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal04.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal05.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal06.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal07.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal08.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal09.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal10.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal11.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal12.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal13.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal14.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal15.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal16.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal17.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal18.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal19.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal20.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal21.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal22.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal23.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal24.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal25.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal26.png");
	
	DeleteGraphic("\script\Images\CharacterBig\TomokoYukata01.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoYukata02.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoYukata03.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoYukata04.png");

	DeleteGraphic("\script\Images\CharacterBig\RyoYukata01.png");
	DeleteGraphic("\script\Images\CharacterBig\RyoYukata02.png");
	DeleteGraphic("\script\Images\CharacterBig\RyoYukata03.png");
	DeleteGraphic("\script\Images\CharacterBig\RyoYukata04.png");
	DeleteGraphic("\script\Images\CharacterBig\RyoYukata05.png");
	DeleteGraphic("\script\Images\CharacterBig\RyoYukata06.png");
	DeleteGraphic("\script\Images\CharacterBig\RyoYukata07.png");
	DeleteGraphic("\script\Images\CharacterBig\RyoYukata08.png");
	DeleteGraphic("\script\Images\CharacterBig\RyoYukata09.png");
	DeleteGraphic("\script\Images\CharacterBig\RyoYukata10.png");

	DeleteGraphic("\script\Images\CharacterBig\SayuriYukata01.png");
	DeleteGraphic("\script\Images\CharacterBig\SayuriYukata02.png");

	DeleteGraphic("\script\Images\CharacterBig\MaiYukata01.png");
	
	DeleteGraphic("\script\Images\CharacterBig\KurumiYukata01.png");
	DeleteGraphic("\script\Images\CharacterBig\KurumiYukata02.png");
	DeleteGraphic("\script\Images\CharacterBig\KurumiYukata03.png");
	DeleteGraphic("\script\Images\CharacterBig\KurumiYukata04.png");
	DeleteGraphic("\script\Images\CharacterBig\KurumiYukata05.png");
	DeleteGraphic("\script\Images\CharacterBig\KurumiYukata06.png");
	DeleteGraphic("\script\Images\CharacterBig\KurumiYukata07.png");
	
	DeleteGraphic("\script\Images\CharacterBig\HotaruYukata01.png");
	DeleteGraphic("\script\Images\CharacterBig\HotaruYukata02.png");
	DeleteGraphic("\script\Images\CharacterBig\HotaruYukata03.png");
	DeleteGraphic("\script\Images\CharacterBig\HotaruYukata04.png");
	DeleteGraphic("\script\Images\CharacterBig\HotaruYukata05.png");

vsize+=30;
}

//Spellcards
if(time==60){
	//Other Effects

	//Backgrounds

	//Shots

	//Other Sounds

vsize+=30;
}

if(time==70){
loaded=1;
}

} // STAGE 4

//=========================================================================================================

if(stage==5){

//Background
if(time==0){
	DeleteGraphic("\script\Images\3DBackground\Stage 1\Bush.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 2\Grass.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 5\Bamboo.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 1\Canopy1.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 1\Canopy2.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 1\Canopy3.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 1\Ceiling.png");

	DeleteGraphic("\script\Images\3DBackground\Lightray.png");
	DeleteGraphic("\script\Images\3DBackground\Wall.png");
	DeleteGraphic("\script\Images\3DBackground\Leaf.png");
vsize+=30;
}

//Sounds
if(time==10){
	DeleteSE("script\SoundEffects\enemydeath1.wav");
vsize+=30;
}

//Sprites
if(time==20){
	DeleteGraphic("\script\Images\CharacterSprites\Midori.png");
	DeleteGraphic("\script\Images\CharacterSprites\Tomomi.png");
	DeleteGraphic("\script\Images\CharacterSprites\Takeo.png");
vsize+=30;
}

//Music
if(time==30){
	LoadMusic("script\Music\Boss 5.wav");
	LoadMusic("script\Music\Stage 5.wav");
vsize+=30;
}

//Enemies
if(time==40){
	DeleteGraphic("\script\Images\Enemies\Fairy2-13.png");
	DeleteGraphic("\script\Images\Enemies\Fairy3-15.png");
	DeleteGraphic("\script\Images\Enemies\Ghosts.png");
	DeleteGraphic("\script\Images\Enemies\Birds2.png");
	DeleteGraphic("\script\Images\Enemies\Geometric.png");

	DeleteSE("script\SoundEffects\shots3.wav");
	DeleteSE("script\SoundEffects\shots4.wav");
	DeleteSE("script\SoundEffects\shots5.wav");
	DeleteSE("script\SoundEffects\shots7.wav");
	DeleteSE("script\SoundEffects\shotm6.wav");
	DeleteSE("script\SoundEffects\shotb5.wav");
	DeleteSE("script\SoundEffects\shotb6.wav");
	DeleteSE("script\SoundEffects\laserm2.wav");
	DeleteSE("script\SoundEffects\magics5.wav");

	LoadUserShotData("script\Shots\ShotsEnemies5.txt");
vsize+=30;
}

//Events
if(time==50){
	DeleteGraphic("\script\Images\OtherEffects\DescriptionL5.png");
	DeleteGraphic("\script\Images\OtherEffects\BarL5.png");

	DeleteGraphic("\script\Images\Text\Names.png");

	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal01.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal02.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal03.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal04.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal05.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal06.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal07.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal08.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal09.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal10.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal11.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal12.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal13.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal14.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal15.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal16.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal17.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal18.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal19.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal20.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal21.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal22.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal23.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal24.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal25.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal26.png");

	DeleteGraphic("\script\Images\CharacterBig\MidoriNormal01.png");
	DeleteGraphic("\script\Images\CharacterBig\MidoriNormal02.png");
	DeleteGraphic("\script\Images\CharacterBig\MidoriNormal03.png");
	DeleteGraphic("\script\Images\CharacterBig\MidoriNormal04.png");
	DeleteGraphic("\script\Images\CharacterBig\MidoriNormal05.png");
	DeleteGraphic("\script\Images\CharacterBig\MidoriNormal06.png");

	DeleteGraphic("\script\Images\CharacterBig\TomomiNormal01.png");
	DeleteGraphic("\script\Images\CharacterBig\TomomiNormal02.png");
	DeleteGraphic("\script\Images\CharacterBig\TomomiNormal03.png");
	DeleteGraphic("\script\Images\CharacterBig\TomomiNormal04.png");
	DeleteGraphic("\script\Images\CharacterBig\TomomiNormal05.png");
	DeleteGraphic("\script\Images\CharacterBig\TomomiNormal06.png");
	DeleteGraphic("\script\Images\CharacterBig\TomomiNormal07.png");
	DeleteGraphic("\script\Images\CharacterBig\TomomiNormal08.png");
	DeleteGraphic("\script\Images\CharacterBig\TomomiNormal09.png");

	DeleteGraphic("\script\Images\CharacterBig\TakeoNormal01.png");
	DeleteGraphic("\script\Images\CharacterBig\TakeoNormal02.png");
	DeleteGraphic("\script\Images\CharacterBig\TakeoNormal03.png");
	DeleteGraphic("\script\Images\CharacterBig\TakeoNormal04.png");
	DeleteGraphic("\script\Images\CharacterBig\TakeoNormal05.png");

vsize+=30;
}

//Spellcards
if(time==60){
	//Other Effects

	//Backgrounds

	//Shots

	//Other Sounds

vsize+=30;
}

if(time==70){
loaded=1;
}

} // STAGE 5

//=========================================================================================================

if(stage==6){

//Background	
if(time==0){
	DeleteGraphic("\script\Images\3DBackground\Stage 6\Floor1.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 6\Ceiling1.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 6\Wall1a.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 6\Wall1b.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 6\Wall2a.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 6\Wall2b.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 6\Door.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 6\Moon.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 2\Tree.png");

	DeleteGraphic("\script\Images\3DBackground\Stage 6\Floor2.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 6\Ceiling2.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 6\Beams1.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 6\Debris.png");

	DeleteGraphic("\script\Images\3DBackground\Stage 6\Floor3.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 6\Ceiling3a.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 6\Ceiling3b.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 6\Beams2.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 6\Window.png");
	DeleteGraphic("\script\Images\3DBackground\Stage 6\Eclipse.png");

	DeleteGraphic("\script\Images\3DBackground\Wall.png");
vsize+=30;
}

//Sounds
if(time==10){
	DeleteSE("script\SoundEffects\enemydeath1.wav");
vsize+=30;
}

//Sprites
if(time==20){
	DeleteGraphic("\script\Images\CharacterSprites\Haruna.png");
	DeleteGraphic("\script\Images\CharacterSprites\Tomoko.png");
vsize+=30;
}

//Music
if(time==30){
	LoadMusic("script\Music\Boss 6.wav");
	LoadMusic("script\Music\Stage 6.wav");
vsize+=30;
}

//Enemies
if(time==40){
	DeleteGraphic("\script\Images\Enemies\Fairy2-10.png");
	DeleteGraphic("\script\Images\Enemies\Fairy3-15.png");
	DeleteGraphic("\script\Images\Enemies\Ghosts.png");
	DeleteGraphic("\script\Images\Enemies\Geometric.png");

	DeleteSE("script\SoundEffects\shots4.wav");
	DeleteSE("script\SoundEffects\shots5.wav");
	DeleteSE("script\SoundEffects\shots6.wav");
	DeleteSE("script\SoundEffects\shotm1.wav");
	DeleteSE("script\SoundEffects\shotm2.wav");
	DeleteSE("script\SoundEffects\shotb1.wav");
	DeleteSE("script\SoundEffects\shotb6.wav");

	LoadUserShotData("script\Shots\ShotsEnemies6.txt");
vsize+=30;
}

//Events
if(time==50){
	DeleteGraphic("\script\Images\OtherEffects\DescriptionL6.png");
	DeleteGraphic("\script\Images\OtherEffects\BarL6.png");

	DeleteGraphic("\script\Images\Text\Names.png");

	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal01.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal02.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal03.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal04.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal05.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal06.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal07.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal08.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal09.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal10.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal11.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal12.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal13.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal14.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal15.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal16.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal17.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal18.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal19.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal20.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal21.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal22.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal23.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal24.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal25.png");
	DeleteGraphic("\script\Images\CharacterBig\MasahiroNormal26.png");
	
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal01.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal02.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal03.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal04.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal05.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal06.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal07.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal08.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal09.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal10.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal11.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal12.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal13.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal14.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal15.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal16.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal17.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal18.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal19.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal20.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoNormal21.png");

	DeleteGraphic("\script\Images\CharacterBig\HarunaNormal01.png");
	DeleteGraphic("\script\Images\CharacterBig\HarunaNormal02.png");
	DeleteGraphic("\script\Images\CharacterBig\HarunaNormal03.png");
	DeleteGraphic("\script\Images\CharacterBig\HarunaNormal04.png");
	DeleteGraphic("\script\Images\CharacterBig\HarunaNormal05.png");
	DeleteGraphic("\script\Images\CharacterBig\HarunaNormal06.png");
	DeleteGraphic("\script\Images\CharacterBig\HarunaNormal07.png");

	DeleteGraphic("\script\Images\CharacterBig\KurumiNormal01.png");
	DeleteGraphic("\script\Images\CharacterBig\KurumiNormal02.png");
	DeleteGraphic("\script\Images\CharacterBig\KurumiNormal03.png");
	DeleteGraphic("\script\Images\CharacterBig\KurumiNormal04.png");

	DeleteGraphic("\script\Images\CharacterBig\HotaruNormal01.png");

vsize+=30;
}

//Spellcards
if(time==60){
	//Other Effects

	//Backgrounds

	//Shots

	//Other Sounds

vsize+=30;
}

if(time==70){
loaded=1;
}

} // STAGE 6

//=========================================================================================================

if(stage==7){

//Background	
if(time==0){
	DeleteGraphic("\script\Images\3DBackground\Lightray.png");

	DeleteGraphic("\script\Images\3DBackground\Extra\Sand.png");
	DeleteGraphic("\script\Images\3DBackground\Extra\Dunes1.png");
	DeleteGraphic("\script\Images\3DBackground\Extra\Dunes2.png");
	DeleteGraphic("\script\Images\3DBackground\Extra\Grass1.png");
	DeleteGraphic("\script\Images\3DBackground\Extra\Grass2.png");
	DeleteGraphic("\script\Images\3DBackground\Extra\Fence1.png");
	DeleteGraphic("\script\Images\3DBackground\Sky1.png");

	DeleteGraphic("\script\Images\3DBackground\Extra\Water1.png");
	DeleteGraphic("\script\Images\3DBackground\Extra\Water2.png");
	DeleteGraphic("\script\Images\3DBackground\Extra\Waves.png");

	DeleteGraphic("\script\Images\3DBackground\Extra\Floor1.png");
	DeleteGraphic("\script\Images\3DBackground\Extra\Floor2.png");
	DeleteGraphic("\script\Images\3DBackground\Extra\Fence2.png");
	DeleteGraphic("\script\Images\3DBackground\Extra\Ceiling.png");

	DeleteGraphic("\script\Images\3DBackground\Wall.png");
vsize+=30;
}

//Sounds
if(time==10){
	DeleteSE("script\SoundEffects\enemydeath1.wav");
vsize+=30;
}

//Sprites
if(time==20){
	DeleteGraphic("\script\Images\CharacterSprites\Kurumi.png");
	DeleteGraphic("\script\Images\CharacterSprites\Hotaru.png");
	DeleteGraphic("\script\Images\CharacterSprites\Tomoko.png");
	DeleteGraphic("\script\Images\CharacterSprites\Setsuko.png");
	DeleteGraphic("\script\Images\CharacterSprites\Ayano.png");
	DeleteGraphic("\script\Images\CharacterSprites\Midori.png");
	DeleteGraphic("\script\Images\CharacterSprites\Tomomi.png");
	DeleteGraphic("\script\Images\CharacterSprites\Youko.png");
	DeleteGraphic("\script\Images\CharacterSprites\Amaya.png");
	DeleteGraphic("\script\Images\CharacterSprites\Sayuri.png");
	DeleteGraphic("\script\Images\CharacterSprites\Mai.png");
	DeleteGraphic("\script\Images\CharacterSprites\Haruna.png");
	DeleteGraphic("\script\Images\CharacterSprites\Nanami.png");
vsize+=30;
}

//Music
if(time==30){
	LoadMusic("script\Music\Boss Extra.wav");
	LoadMusic("script\Music\Stage Extra.wav");
vsize+=30;
}

//Enemies
if(time==40){
	DeleteGraphic("\script\Images\Enemies\Fairy1-01.png");
	DeleteGraphic("\script\Images\Enemies\Fairy1-05.png");
	DeleteGraphic("\script\Images\Enemies\Fairy2-12.png");
	DeleteGraphic("\script\Images\Enemies\Fairy3-15.png");
	DeleteGraphic("\script\Images\Enemies\Birds1.png");
	DeleteGraphic("\script\Images\Enemies\Birds2.png");
	DeleteGraphic("\script\Images\Enemies\Ghosts.png");
	DeleteGraphic("\script\Images\OtherEffects\SpellCircle1a.png");
	DeleteGraphic("\script\Images\OtherEffects\EnemyDeath.png");

	DeleteSE("script\SoundEffects\shots5.wav");
	DeleteSE("script\SoundEffects\shots6.wav");
	DeleteSE("script\SoundEffects\shots7.wav");
	DeleteSE("script\SoundEffects\shotm1.wav");
	DeleteSE("script\SoundEffects\shotm7.wav");
	DeleteSE("script\SoundEffects\shotb1.wav");
	DeleteSE("script\SoundEffects\shotb2.wav");
	DeleteSE("script\SoundEffects\shotb5.wav");

	LoadUserShotData("script\Shots\ShotsEnemies7.txt");
vsize+=30;
}

//Events
if(time==50){
	DeleteGraphic("\script\Images\OtherEffects\DescriptionL6.png");
	DeleteGraphic("\script\Images\OtherEffects\BarL6.png");

	DeleteGraphic("\script\Images\Text\Names.png");

	DeleteGraphic("\script\Images\CharacterBig\AmayaSwimsuit01.png");
	DeleteGraphic("\script\Images\CharacterBig\AmayaSwimsuit02.png");

	DeleteGraphic("\script\Images\CharacterBig\AyanoSwimsuit01.png");
	DeleteGraphic("\script\Images\CharacterBig\AyanoSwimsuit02.png");

	DeleteGraphic("\script\Images\CharacterBig\HarunaSwimsuit01.png");
	DeleteGraphic("\script\Images\CharacterBig\HarunaSwimsuit02.png");

	DeleteGraphic("\script\Images\CharacterBig\HotaruSwimsuit01.png");
	DeleteGraphic("\script\Images\CharacterBig\HotaruSwimsuit02.png");

	DeleteGraphic("\script\Images\CharacterBig\KurumiSwimsuit01.png");
	DeleteGraphic("\script\Images\CharacterBig\KurumiSwimsuit02.png");
	DeleteGraphic("\script\Images\CharacterBig\KurumiSwimsuit03.png");
	DeleteGraphic("\script\Images\CharacterBig\KurumiSwimsuit04.png");

	DeleteGraphic("\script\Images\CharacterBig\MaiSwimsuit01.png");
	DeleteGraphic("\script\Images\CharacterBig\MaiSwimsuit02.png");

	DeleteGraphic("\script\Images\CharacterBig\MidoriSwimsuit01.png");
	DeleteGraphic("\script\Images\CharacterBig\MidoriSwimsuit02.png");

	DeleteGraphic("\script\Images\CharacterBig\SayuriSwimsuit01.png");
	DeleteGraphic("\script\Images\CharacterBig\SayuriSwimsuit02.png");

	DeleteGraphic("\script\Images\CharacterBig\SetsukoSwimsuit01.png");
	DeleteGraphic("\script\Images\CharacterBig\SetsukoSwimsuit02.png");

	DeleteGraphic("\script\Images\CharacterBig\TomokoSwimsuit01.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoSwimsuit02.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoSwimsuit03.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoSwimsuit04.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoSwimsuit05.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoSwimsuit06.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoSwimsuit07.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoSwimsuit08.png");

	DeleteGraphic("\script\Images\CharacterBig\TomokoSpecial01.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoSpecial02.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoSpecial03.png");
	DeleteGraphic("\script\Images\CharacterBig\TomokoSpecial04.png");

	DeleteGraphic("\script\Images\CharacterBig\TomomiSwimsuit01.png");
	DeleteGraphic("\script\Images\CharacterBig\TomomiSwimsuit02.png");
	DeleteGraphic("\script\Images\CharacterBig\TomomiSwimsuit03.png");
	DeleteGraphic("\script\Images\CharacterBig\TomomiSwimsuit04.png");

	DeleteGraphic("\script\Images\CharacterBig\YoukoSwimsuit01.png");
	DeleteGraphic("\script\Images\CharacterBig\YoukoSwimsuit02.png");

	DeleteGraphic("\script\Images\CharacterBig\NanamiNormal01.png");
	DeleteGraphic("\script\Images\CharacterBig\NanamiNormal02.png");
	DeleteGraphic("\script\Images\CharacterBig\NanamiNormal03.png");
	DeleteGraphic("\script\Images\CharacterBig\NanamiNormal04.png");
	DeleteGraphic("\script\Images\CharacterBig\NanamiNormal05.png");
	DeleteGraphic("\script\Images\CharacterBig\NanamiNormal06.png");
	DeleteGraphic("\script\Images\CharacterBig\NanamiNormal07.png");
	DeleteGraphic("\script\Images\CharacterBig\NanamiNormal08.png");
	DeleteGraphic("\script\Images\CharacterBig\NanamiNormal09.png");

vsize+=30;
}

//Spellcards
if(time==60){
	//Other Effects
	DeleteGraphic("\script\Images\OtherEffects\Pulse.png");
	DeleteGraphic("\script\Images\OtherEffects\SpellCircle1a.png");
	DeleteGraphic("\script\Images\OtherEffects\SpellCircle1b.png");
	DeleteGraphic("\script\Images\OtherEffects\Impact.png");
	DeleteGraphic("\script\Images\OtherEffects\Fan1.png");
	DeleteGraphic("\script\Images\OtherEffects\Chips.png");

	//Backgrounds
	DeleteGraphic("\script\Images\BackgroundLayers\Kurumi1.png");
	DeleteGraphic("\script\Images\BackgroundLayers\Hotaru1.png");
	DeleteGraphic("\script\Images\BackgroundLayers\Hotaru2.png");
	DeleteGraphic("\script\Images\BackgroundLayers\Tomoko2a.png");
	DeleteGraphic("\script\Images\BackgroundLayers\Tomoko2b.png");
	DeleteGraphic("\script\Images\BackgroundLayers\Setsuko1.png");
	DeleteGraphic("\script\Images\BackgroundLayers\Setsuko3.png");
	DeleteGraphic("\script\Images\BackgroundLayers\Ayano3.png");
	DeleteGraphic("\script\Images\BackgroundLayers\Midori1.png");
	DeleteGraphic("\script\Images\BackgroundLayers\Tomomi3.png");
	DeleteGraphic("\script\Images\BackgroundLayers\Tomomi1.png");
	DeleteGraphic("\script\Images\BackgroundLayers\Youko3.png");
	DeleteGraphic("\script\Images\BackgroundLayers\Youko2.png");
	DeleteGraphic("\script\Images\BackgroundLayers\Amaya1.png");
	DeleteGraphic("\script\Images\BackgroundLayers\Sayuri2a.png");
	DeleteGraphic("\script\Images\BackgroundLayers\Sayuri2b.png");
	DeleteGraphic("\script\Images\BackgroundLayers\Mai4a.png");
	DeleteGraphic("\script\Images\BackgroundLayers\Mai4b.png");
	DeleteGraphic("\script\Images\BackgroundLayers\Haruna4.png");
	DeleteGraphic("\script\Images\BackgroundLayers\Takeo3.png");
	DeleteGraphic("\script\Images\BackgroundLayers\Nanami1.png");
	DeleteGraphic("\script\Images\BackgroundLayers\Nanami2.png");
	DeleteGraphic("\script\Images\BackgroundLayers\Witches1.png");

	//Sounds
	DeleteSE("script\SoundEffects\shots3.wav");
	DeleteSE("script\SoundEffects\shots4.wav");
	DeleteSE("script\SoundEffects\shots5.wav");
	DeleteSE("script\SoundEffects\shots7.wav");
	DeleteSE("script\SoundEffects\shotm2.wav");
	DeleteSE("script\SoundEffects\shotm4.wav");
	DeleteSE("script\SoundEffects\shotm6.wav");
	DeleteSE("script\SoundEffects\shotm8.wav");
	DeleteSE("script\SoundEffects\shotb1.wav");
	DeleteSE("script\SoundEffects\shotb5.wav");
	DeleteSE("script\SoundEffects\shotb6.wav");
	DeleteSE("script\SoundEffects\shotb7.wav");
	DeleteSE("script\SoundEffects\laserm1.wav");
	DeleteSE("script\SoundEffects\laserm2.wav");
	DeleteSE("script\SoundEffects\laserm3.wav");
	DeleteSE("script\SoundEffects\laserb2.wav");
	DeleteSE("script\SoundEffects\magics1.wav");
	DeleteSE("script\SoundEffects\magics5.wav");
	DeleteSE("script\SoundEffects\magicb2.wav");
	DeleteSE("script\SoundEffects\explodes1.wav");

	DeleteSE("script\SoundEffects\stone1.wav");
	DeleteSE("script\SoundEffects\stone2.wav");
	DeleteSE("script\SoundEffects\sonar1.wav");
	DeleteSE("script\SoundEffects\ping1.wav");
	DeleteSE("script\SoundEffects\fan1.wav");

vsize+=30;
}

if(time==70){
loaded=1;
}

} // STAGE EXTRA


//=========================================================================================================

if(stage==8){

//Background	
if(time==0){
	DeleteGraphic("\script\Images\3DBackground\Nightmare\1.png");
	DeleteGraphic("\script\Images\3DBackground\Nightmare\2.png");
	DeleteGraphic("\script\Images\3DBackground\Nightmare\3.png");

	DeleteGraphic("\script\Images\3DBackground\Wall.png");
vsize+=30;
}

//Sounds
if(time==10){
	DeleteSE("script\SoundEffects\enemydeath1.wav");
vsize+=30;
}

//Sprites
if(time==20){
	DeleteGraphic("\script\Images\CharacterSprites\Masahiro.png");
vsize+=30;
}

//Music
if(time==30){
	LoadMusic("script\Music\Boss 2.wav");
	LoadMusic("script\Music\Stage 2.wav");
vsize+=30;
}

//Enemies
if(time==40){
	DeleteGraphic("\script\Images\Enemies\Gems.png");
	DeleteGraphic("\script\Images\Enemies\Fairy3-15.png");
	DeleteGraphic("\script\Images\OtherEffects\SpellCircle1b.png");	
	DeleteGraphic("\script\Images\OtherEffects\SpellCircle1a.png");

	DeleteSE("script\SoundEffects\shots5.wav");
	DeleteSE("script\SoundEffects\shots6.wav");
	DeleteSE("script\SoundEffects\shots7.wav");
	DeleteSE("script\SoundEffects\shotm1.wav");
	DeleteSE("script\SoundEffects\shotm2.wav");
	DeleteSE("script\SoundEffects\shotm4.wav");
	DeleteSE("script\SoundEffects\shotm5.wav");
	DeleteSE("script\SoundEffects\shotm7.wav");
	DeleteSE("script\SoundEffects\shotb7.wav");
	DeleteSE("script\SoundEffects\laserm2.wav");
	DeleteSE("script\SoundEffects\magics1.wav");
	DeleteSE("script\SoundEffects\magics5.wav");
	DeleteSE("script\SoundEffects\fire1.wav");
	
	LoadUserShotData("script\Shots\ShotsEnemies8.txt");
vsize+=30;
}

//Events
if(time==50){
vsize+=30;
}

//Spellcards
if(time==60){
	//Other Effects
	DeleteGraphic("\script\Images\OtherEffects\ButterflyWings.png");
	DeleteGraphic("\script\Images\OtherEffects\SpellCircle1a.png");
	DeleteGraphic("\script\Images\OtherEffects\SpellCircle1b.png");
	DeleteGraphic("\script\Images\OtherEffects\SafeCircle4.png");
	DeleteGraphic("\script\Images\OtherEffects\Wall.png");

	//Backgrounds
	DeleteGraphic("\script\Images\BackgroundLayers\Nightmare1.png");

	//Sounds
	DeleteSE("\script\SoundEffects\shots3.wav");
	DeleteSE("\script\SoundEffects\shots4.wav");
	DeleteSE("\script\SoundEffects\shots5.wav");
	DeleteSE("\script\SoundEffects\shots6.wav");
	DeleteSE("\script\SoundEffects\shots7.wav");
	DeleteSE("\script\SoundEffects\shotm1.wav");
	DeleteSE("\script\SoundEffects\shotm2.wav");
	DeleteSE("\script\SoundEffects\shotm4.wav");
	DeleteSE("\script\SoundEffects\shotm7.wav");
	DeleteSE("\script\SoundEffects\shotm8.wav");
	DeleteSE("\script\SoundEffects\shotb1.wav");
	DeleteSE("\script\SoundEffects\shotb5.wav");
	DeleteSE("\script\SoundEffects\shotb7.wav");
	DeleteSE("\script\SoundEffects\shotb9.wav");
	DeleteSE("\script\SoundEffects\laserm1.wav");
	DeleteSE("\script\SoundEffects\laserm2.wav");
	DeleteSE("\script\SoundEffects\laserm4.wav");
	DeleteSE("\script\SoundEffects\laserb2.wav");
	DeleteSE("\script\SoundEffects\magics1.wav");
	DeleteSE("\script\SoundEffects\magics5.wav");
	DeleteSE("\script\SoundEffects\charge1.wav");
	DeleteSE("\script\SoundEffects\focus1.wav");

vsize+=30;
}

} // STAGE NIGHTMARE

time++;

if(time==70){ VanishEnemy; }

}
}