script_enemy_main{

SetCommonData("BlackScreenFade",255);
SetCommonData("Conversation",0);

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

let effect1=0;
let effect2=0;
let effect3=0;

let vsize=30;
let ani=0;
let aniframe=0;
let loaded=0;

let stage=GetArgument;

let EFloading1=("\script\Images\Menu\Loading1.png");
let EFloading2=("\script\Images\Menu\Loading2.png");
let EFloading3=("\script\Images\Menu\Loading3.png");

#include_function "script/Functions/PortraitsVariables.txt";

@Initialize{
	LoadGraphic("\script\Images\Menu\Loading1.png");
	LoadGraphic("\script\Images\Menu\Loading2.png");
	LoadGraphic("\script\Images\Menu\Loading3.png");

	LoadSE("\script\SoundEffects\text1.wav");
	LoadSE("\script\SoundEffects\text2.wav");
	LoadSE("\script\SoundEffects\text3.wav");
	LoadSE("\script\SoundEffects\text4.wav");	
	LoadSE("\script\SoundEffects\extralife.wav");
	LoadSE("\script\SoundEffects\itemscore.wav");
	LoadSE("\script\SoundEffects\itempower.wav");
	LoadSE("\script\SoundEffects\itempoint.wav");
	LoadSE("\script\SoundEffects\itembomb.wav");
	LoadSE("\script\SoundEffects\itempowerup.wav");
	LoadSE("\script\SoundEffects\itemmaxpower.wav");

	LoadGraphic("\script\Images\OtherEffects\Wall.png");
	LoadGraphic("\script\Images\OtherEffects\Items.png");
	LoadGraphic("\script\Images\OtherEffects\Framework1.png");
	LoadGraphic("\script\Images\OtherEffects\Framework2.png");
	LoadGraphic("\script\Images\OtherEffects\StageBar.png");
	LoadGraphic("\script\Images\OtherEffects\DifficultyBar.png");
	LoadGraphic("\script\Images\OtherEffects\Powerbar.png");
	LoadGraphic("\script\Images\OtherEffects\Continued.png");
	LoadGraphic("\script\Images\OtherEffects\Textbar.png");
	LoadGraphic("\script\Images\OtherEffects\TextDialogue.png");
	LoadGraphic("\script\Images\OtherEffects\Names.png");

	SetLife(100);
	SetScore(100);
}

@MainLoop{

if(GetArgument==0){ VanishEnemy; }

if(time==0 && GetArgument>0){
let xsize=640;
let ysize=480;
	effect1=(Obj_Create(OBJ_EFFECT));
	Obj_SetPosition(effect1,320,240);
	ObjEffect_SetScale(effect1,1,1);
	ObjEffect_SetLayer(effect1,8); ObjEffect_SetTexture(effect1,EFloading1); ObjEffect_SetRenderState(effect1,ALPHA);
	ObjEffect_SetPrimitiveType(effect1,PRIMITIVE_TRIANGLESTRIP); ObjEffect_CreateVertex(effect1,4);
	ObjEffect_SetVertexXY(effect1,0,-(xsize/2),-(ysize/2)); ObjEffect_SetVertexUV(effect1,0,0,0);
	ObjEffect_SetVertexXY(effect1,1,xsize/2,-(ysize/2)); ObjEffect_SetVertexUV(effect1,1,xsize,0);
	ObjEffect_SetVertexXY(effect1,2,-(xsize/2),ysize/2); ObjEffect_SetVertexUV(effect1,2,0,ysize);
	ObjEffect_SetVertexXY(effect1,3,xsize/2,ysize/2); ObjEffect_SetVertexUV(effect1,3,xsize,ysize);
	ObjEffect_SetVertexColor(effect1,0,255,255,255,255); ObjEffect_SetVertexColor(effect1,1,255,255,255,255);
	ObjEffect_SetVertexColor(effect1,2,255,255,255,255); ObjEffect_SetVertexColor(effect1,3,255,255,255,255);

let xsize=240;
let ysize=240;
	effect2=(Obj_Create(OBJ_EFFECT));
	Obj_SetPosition(effect2,cx,cy-210);
	ObjEffect_SetScale(effect2,1,1);
	ObjEffect_SetLayer(effect2,8); ObjEffect_SetTexture(effect2,EFloading2); ObjEffect_SetRenderState(effect2,ALPHA);
	ObjEffect_SetPrimitiveType(effect2,PRIMITIVE_TRIANGLESTRIP); ObjEffect_CreateVertex(effect2,4);
	ObjEffect_SetVertexXY(effect2,0,-(xsize/2),-(ysize/2)); ObjEffect_SetVertexUV(effect2,0,0,0);
	ObjEffect_SetVertexXY(effect2,1,xsize/2,-(ysize/2)); ObjEffect_SetVertexUV(effect2,1,xsize,0);
	ObjEffect_SetVertexXY(effect2,2,-(xsize/2),ysize/2); ObjEffect_SetVertexUV(effect2,2,0,ysize);
	ObjEffect_SetVertexXY(effect2,3,xsize/2,ysize/2); ObjEffect_SetVertexUV(effect2,3,xsize,ysize);
	ObjEffect_SetVertexColor(effect2,0,255,255,255,255); ObjEffect_SetVertexColor(effect2,1,255,255,255,255);
	ObjEffect_SetVertexColor(effect2,2,255,255,255,255); ObjEffect_SetVertexColor(effect2,3,255,255,255,255);

let xsize=70;
let ysize=100;
	effect3=(Obj_Create(OBJ_EFFECT));
	Obj_SetPosition(effect3,600,420);
	ObjEffect_SetScale(effect3,1,1);
	ObjEffect_SetLayer(effect3,8); ObjEffect_SetTexture(effect3,EFloading3); ObjEffect_SetRenderState(effect3,ALPHA);
	ObjEffect_SetPrimitiveType(effect3,PRIMITIVE_TRIANGLESTRIP); ObjEffect_CreateVertex(effect3,4);
	ObjEffect_SetVertexXY(effect3,0,-(xsize/2),-(ysize/2)); ObjEffect_SetVertexUV(effect3,0,0,0);
	ObjEffect_SetVertexXY(effect3,1,xsize/2,-(ysize/2)); ObjEffect_SetVertexUV(effect3,1,xsize,0);
	ObjEffect_SetVertexXY(effect3,2,-(xsize/2),ysize/2); ObjEffect_SetVertexUV(effect3,2,0,ysize);
	ObjEffect_SetVertexXY(effect3,3,xsize/2,ysize/2); ObjEffect_SetVertexUV(effect3,3,xsize,ysize);
	ObjEffect_SetVertexColor(effect3,0,255,255,255,255); ObjEffect_SetVertexColor(effect3,1,255,255,255,255);
	ObjEffect_SetVertexColor(effect3,2,255,255,255,255); ObjEffect_SetVertexColor(effect3,3,255,255,255,255);
}

Obj_SetPosition(effect2,cx,cy-210+vsize/2);
ObjEffect_SetVertexXY(effect2,0,-120,-vsize/2); ObjEffect_SetVertexUV(effect2,0,0,0);
ObjEffect_SetVertexXY(effect2,1,120,-vsize/2); ObjEffect_SetVertexUV(effect2,1,240,0);
ObjEffect_SetVertexXY(effect2,2,-120,vsize/2); ObjEffect_SetVertexUV(effect2,2,0,vsize);
ObjEffect_SetVertexXY(effect2,3,120,vsize/2); ObjEffect_SetVertexUV(effect2,3,240,vsize);

if(aniframe==0){ ani=0; }
if(aniframe==1){ ani=70; }
if(aniframe==2){ ani=140; }
if(aniframe==3){ ani=210; }
if(aniframe==4){ ani=280; }
if(aniframe==5){ ani=210; }
if(aniframe==6){ ani=140; }
if(aniframe==7){ ani=70; }

if(time%6==0){ aniframe+=1; if(aniframe>7){ aniframe=0; } }

ObjEffect_SetVertexUV(effect3,0,0+ani,0); ObjEffect_SetVertexUV(effect3,1,70+ani,0);
ObjEffect_SetVertexUV(effect3,2,0+ani,100); ObjEffect_SetVertexUV(effect3,3,70+ani,100);


if(stage==1){

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

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

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

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

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

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

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

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

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

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

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

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

vsize+=30;
}

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

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

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

	LoadSE("script\SoundEffects\fan1.wav");
	LoadSE("script\SoundEffects\mechanic1normal.wav");
	LoadSE("script\SoundEffects\mechanic1long.wav");
vsize+=30;
}

} // STAGE 1

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

if(stage==2){

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

vsize+=30;
}

} // STAGE 2

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

if(stage==3){

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

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

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

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

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

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

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

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

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

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

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

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

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

vsize+=30;
}

//Spellcards
if(time==60){
	//Other Effects
	LoadGraphic("\script\Images\OtherEffects\SpellCircle1a.png");
	LoadGraphic("\script\Images\OtherEffects\MaiAdd.png");

	//Backgrounds
	LoadGraphic("\script\Images\BackgroundLayers\Ayano1.png");
	LoadGraphic("\script\Images\BackgroundLayers\Ayano2.png");
	LoadGraphic("\script\Images\BackgroundLayers\Ayano3.png");
	LoadGraphic("\script\Images\BackgroundLayers\Ayano4.png");
	LoadGraphic("\script\Images\BackgroundLayers\Mai1.png");
	LoadGraphic("\script\Images\BackgroundLayers\Sayuri2a.png");
	LoadGraphic("\script\Images\BackgroundLayers\Sayuri2b.png");
	LoadGraphic("\script\Images\BackgroundLayers\Sayuri4.png");
	
	//Sounds
	LoadSE("script\SoundEffects\shots3.wav");
	LoadSE("script\SoundEffects\shots5.wav");
	LoadSE("script\SoundEffects\shots6.wav");
	LoadSE("script\SoundEffects\shots7.wav");
	LoadSE("script\SoundEffects\shotm1.wav");
	LoadSE("script\SoundEffects\shotm3.wav");
	LoadSE("script\SoundEffects\shotb1.wav");
	LoadSE("\script\SoundEffects\shotb5.wav");
	LoadSE("script\SoundEffects\magics1.wav");
	LoadSE("script\SoundEffects\magics5.wav");
	LoadSE("script\SoundEffects\fire1.wav");
	LoadSE("script\SoundEffects\charge1.wav");
	LoadSE("script\SoundEffects\stone1.wav");
	LoadSE("script\SoundEffects\stone2.wav");
	LoadSE("script\SoundEffects\chime1.wav");
	LoadSE("\script\SoundEffects\surreal1.wav");

vsize+=30;
}

} // STAGE 3

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

if(stage==4){

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

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

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

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

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

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

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

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

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

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

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

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

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

vsize+=30;
}

//Spellcards
if(time==60){
	//Other Effects
	LoadGraphic("\script\Images\OtherEffects\SpellCircle1b.png");
	LoadGraphic("\script\Images\OtherEffects\SafeCircle1.png");
	LoadGraphic("\script\Images\OtherEffects\SunBullet.png");
	LoadGraphic("\script\Images\OtherEffects\Smoke.png");

	//Backgrounds
	LoadGraphic("\script\Images\BackgroundLayers\Ryo1b.png");
	LoadGraphic("\script\Images\BackgroundLayers\Ryo2.png");
	LoadGraphic("\script\Images\BackgroundLayers\Hotaru1.png");
	LoadGraphic("\script\Images\BackgroundLayers\Hotaru2.png");
	LoadGraphic("\script\Images\BackgroundLayers\Kurumi1.png");	

	//Sounds
	LoadSE("script\SoundEffects\shots5.wav");
	LoadSE("script\SoundEffects\shotm2.wav");
	LoadSE("script\SoundEffects\shotm3.wav");
	LoadSE("script\SoundEffects\shotm8.wav");
	LoadSE("script\SoundEffects\shotb5.wav");
	LoadSE("script\SoundEffects\shotb6.wav");
	LoadSE("script\SoundEffects\shotb7.wav");
	LoadSE("script\SoundEffects\laserm3.wav");
	LoadSE("script\SoundEffects\laserb1.wav");
	LoadSE("script\SoundEffects\magics5.wav");
	LoadSE("script\SoundEffects\fire1.wav");
	LoadSE("script\SoundEffects\fireworks1.wav");
	LoadSE("script\SoundEffects\fireworks3.wav");
	LoadSE("script\SoundEffects\fireworks5.wav");
	LoadSE("script\SoundEffects\charge2.wav");
	LoadSE("script\SoundEffects\reflect1.wav");
	LoadSE("script\SoundEffects\reflect2.wav");
	LoadSE("script\SoundEffects\explodes1.wav");
	LoadSE("script\SoundEffects\explodes2.wav");
	LoadSE("script\SoundEffects\explodeb1.wav");
	LoadSE("script\SoundEffects\focus1.wav");
	LoadSE("script\SoundEffects\throw1.wav");

vsize+=30;
}

} // STAGE 4

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

if(stage==5){

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

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

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

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

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

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

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

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

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

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

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

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

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

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

vsize+=30;
}

//Spellcards
if(time==60){
	//Other Effects
	LoadGraphic("\script\Images\OtherEffects\Flashlight1.png");
	LoadGraphic("\script\Images\OtherEffects\Flashlight2.png");
	LoadGraphic("\script\Images\OtherEffects\Wall.png");
	LoadGraphic("\script\Images\Enemies\Geometric.png");
	LoadGraphic("\script\Images\OtherEffects\SlotMachineA.png");
	LoadGraphic("\script\Images\OtherEffects\SlotMachineB.png");
	LoadGraphic("\script\Images\OtherEffects\SpellCircle1a.png");
	LoadGraphic("\script\Images\OtherEffects\Chips.png");
	
	//Backgrounds
	LoadGraphic("\script\Images\BackgroundLayers\Midori1.png");
	LoadGraphic("\script\Images\BackgroundLayers\Midori3.png");
	LoadGraphic("\script\Images\BackgroundLayers\Takeo1a.png");
	LoadGraphic("\script\Images\BackgroundLayers\Takeo1b.png");
	LoadGraphic("\script\Images\BackgroundLayers\Takeo3.png");	
	LoadGraphic("\script\Images\BackgroundLayers\Tomomi1.png");
	LoadGraphic("\script\Images\BackgroundLayers\Tomomi3.png");

	//Sounds
	LoadSE("script\SoundEffects\shots3.wav");	
	LoadSE("script\SoundEffects\shots5.wav");
	LoadSE("script\SoundEffects\shots6.wav");
	LoadSE("script\SoundEffects\shots7.wav");
	LoadSE("script\SoundEffects\shotm1.wav");
	LoadSE("script\SoundEffects\shotm2.wav");
	LoadSE("script\SoundEffects\shotm3.wav");
	LoadSE("script\SoundEffects\shotm6.wav");
	LoadSE("script\SoundEffects\shotm7.wav");
	LoadSE("script\SoundEffects\shotm8.wav");
	LoadSE("script\SoundEffects\shotb1.wav");	
	LoadSE("script\SoundEffects\shotb2.wav");
	LoadSE("script\SoundEffects\shotb5.wav");	
	LoadSE("script\SoundEffects\shotb6.wav");
	LoadSE("script\SoundEffects\laserm2.wav");
	LoadSE("script\SoundEffects\laserb2.wav");
	LoadSE("script\SoundEffects\magics5.wav");
	LoadSE("script\SoundEffects\charge1.wav");
	LoadSE("script\SoundEffects\spawn5.wav");
	LoadSE("script\SoundEffects\water1.wav");
	LoadSE("script\SoundEffects\slotmachine1.wav");
	LoadSE("script\SoundEffects\slotmachine2.wav");
	LoadSE("script\SoundEffects\slotmachine3.wav");
	LoadSE("script\SoundEffects\slotmachinecoin.wav");
	LoadSE("script\SoundEffects\slotmachinewrong.wav");
	LoadSE("script\SoundEffects\slotmachinejackpot.wav");

vsize+=30;
}

} // STAGE 5

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

if(stage==6){

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

vsize+=30;
}

//Spellcards
if(time==60){
	//Other Effects
	LoadGraphic("\script\Images\OtherEffects\Pulse.png");
	LoadGraphic("\script\Images\OtherEffects\BlackBlur.png");
	LoadGraphic("\script\Images\OtherEffects\SpellCircle1a.png");
	LoadGraphic("\script\Images\OtherEffects\SpellCircle1b.png");
	LoadGraphic("\script\Images\OtherEffects\ButterflyWings.png");
	LoadGraphic("\script\Images\Enemies\Fairy1-08.png");

	//Backgrounds
	LoadGraphic("\script\Images\BackgroundLayers\Haruna2.png");
	LoadGraphic("\script\Images\BackgroundLayers\Haruna3a.png");
	LoadGraphic("\script\Images\BackgroundLayers\Tomoko1.png");
	LoadGraphic("\script\Images\BackgroundLayers\Tomoko2a.png");
	LoadGraphic("\script\Images\BackgroundLayers\Tomoko2b.png");
	LoadGraphic("\script\Images\BackgroundLayers\Tomoko5.png");
	LoadGraphic("\script\Images\BackgroundLayers\Tomoko6.png");	
	LoadGraphic("\script\Images\BackgroundLayers\Tomoko7a.png");
	LoadGraphic("\script\Images\BackgroundLayers\Tomoko7b.png");

	//Sounds
	LoadSE("script\SoundEffects\shots4.wav");
	LoadSE("script\SoundEffects\shots5.wav");
	LoadSE("script\SoundEffects\shots7.wav");
	LoadSE("script\SoundEffects\shotm1.wav");
	LoadSE("script\SoundEffects\shotm2.wav");
	LoadSE("script\SoundEffects\shotm3.wav");
	LoadSE("script\SoundEffects\shotm4.wav");
	LoadSE("script\SoundEffects\shotb7.wav");
	LoadSE("script\SoundEffects\laserm2.wav");
	LoadSE("script\SoundEffects\laserm3.wav");
	LoadSE("script\SoundEffects\laserm4.wav");
	LoadSE("script\SoundEffects\magics1.wav");
	LoadSE("script\SoundEffects\magics5.wav");
	LoadSE("script\SoundEffects\charge1.wav");
	LoadSE("script\SoundEffects\charge2.wav");
	LoadSE("script\SoundEffects\implode2.wav");
	LoadSE("script\SoundEffects\explode2.wav");

vsize+=30;
}

} // STAGE 6

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

if(stage==7){

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

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

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

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

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

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

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

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

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

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

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

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

	LoadGraphic("\script\Images\Text\Names.png");
	LoadGraphic("\script\Images\CharacterBig\KurumiSwimsuit01.png");
	LoadGraphic("\script\Images\CharacterBig\KurumiSwimsuit02.png");
	LoadGraphic("\script\Images\CharacterBig\KurumiSwimsuit03.png");
	LoadGraphic("\script\Images\CharacterBig\KurumiSwimsuit04.png");

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

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

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

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

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

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

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

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

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

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

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

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

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

vsize+=30;
}

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

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

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

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

vsize+=30;
}

} // STAGE EXTRA


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

if(stage==8){

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

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

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

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

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

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

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

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

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

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

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

vsize+=30;
}

} // STAGE NIGHTMARE

#include_function "script/Functions/PortraitsLoad.txt";

time++;

if(time==70){
	SetCommonData("ItemSpawn",0);
	SetCommonData("BlackScreenFade",0);
	SetCommonData("StageLoaded",1);
	if(GetCommonData("InStagePractise")==1){ SetCommonData("InStagePractise",2); }
	VanishEnemy;
}

}
}