task FlourDrop{//タイトル画面で落ちてくる花
let X=Cx+95;
let Y=Cy;
let img1="script\img-Title\DropFlour.png";
let imgNo="script\img-Title\";
let rect01=0;let rect02=0;
let rect03=71;let rect04=68;
let Layer=8;let alpha=0;
let angle1=0;let scale=0;
let angle2=0;let angle3=0;
let W=(rect03-rect01)/2;let H=(rect04-rect02)/2;
let frame=0;let frame1=0;
let obj = Obj_Create(OBJ_EFFECT);
LoadGraphic(img1);
ObjEffect_SetTexture(obj,img1);ObjEffect_SetRenderState(obj,ADD);
ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLEFAN);ObjEffect_CreateVertex(obj, 4);
ObjEffect_SetLayer(obj,Layer);Obj_SetPosition(obj,rand(-50,680),rand(0,100));
ObjEffect_SetAngle(obj,angle1,angle1,0);ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetVertexXY(obj, 0,-W,-H);ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);ObjEffect_SetVertexUV(obj, 3, rect01, rect04);
ObjEffect_SetVertexColor(obj, 0, 255, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 1, 255, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 2, 255, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 3, 255, 255, 255, alpha);
scale=rand(0.1,1);
angle1=rand(0,360);
angle2=rand(0,360);
angle3=rand(0,360);
Obj_SetSpeed(obj,rand(0.5,3));
Obj_SetAngle(obj,rand(60,140));
loop{
ObjEffect_SetVertexColor(obj, 0, 255, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 1, 255, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 2, 255, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 3, 255, 255, 255, alpha);
ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetAngle(obj,angle1,angle2,angle3);
if(alpha>255){
}else{
alpha+=5;
}
angle1++;
angle2++;
angle3++;
frame1++;
if(frame1==600){
Obj_Delete(obj);
break;
}
if(Scene==7){
ObjEffect_SetTexture(obj,imgNo);
Obj_Delete(obj);
break;
}
yield;
}
}
task CharacterCommand2{//難易度選択意コマンドに使用
let X=Cx-60;
let Y=Cy+80;
let img1="script\img-Character\Reimu-1.png";
let img2="script\img-Character\Dummy-1.png";
let img3="script\img-Character\Dummy-1.png";
let imgNo="script\img-Title\.png";
let rect01=0;
let rect02=0;
let rect03=450;
let rect04=595;
let Layer=8;
let alpha=255;
let angle=0;
let scale=0;
let W=(rect03-rect01)/2;
let H=(rect04-rect02)/2;
let frame=0;
let frame1=0;
let Collar=255;
let obj = Obj_Create(OBJ_EFFECT);
LoadGraphic(img1);
LoadGraphic(img2);
LoadGraphic(img3);
ObjEffect_SetTexture(obj,img1);
ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLEFAN);
ObjEffect_CreateVertex(obj, 4);
ObjEffect_SetLayer(obj,Layer);
Obj_SetPosition(obj,X,Y);
ObjEffect_SetAngle(obj,angle,angle,0);
ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetVertexXY(obj, 0,-W,-H);
ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);
ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);
ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);
ObjEffect_SetVertexUV(obj, 3, rect01, rect04);
ObjEffect_SetVertexColor(obj, 0, 255, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 1, 255, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 2, 255, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 3, 255, 255, 255, alpha);
ObjEffect_SetRenderState(obj,ALPHA);
loop{
frame1++;
ObjEffect_SetVertexColor(obj, 0, Collar, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 1, Collar, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 2, Collar, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 3, Collar, 255, 255, alpha);
ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetAngle(obj,angle,angle,0);
Obj_SetPosition(obj,X,Y);

if(alpha>255){
}else{
alpha+=10;
}
if(scale>1){
}else{
scale+=0.05;
}

if(Command3==1){
rect01=0; rect02=0;
rect03=450; rect04=595;
ObjEffect_SetVertexXY(obj, 0,-W,-H);ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);ObjEffect_SetVertexUV(obj, 3, rect01, rect04);	
ObjEffect_SetTexture(obj,img1);
}
if(Command3==2){
rect01=0; rect02=0;
rect03=450; rect04=595;
ObjEffect_SetVertexXY(obj, 0,-W,-H);ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);ObjEffect_SetVertexUV(obj, 3, rect01, rect04);	
ObjEffect_SetTexture(obj,img2);
}
if(Command3==3){
rect01=0; rect02=0;
rect03=450; rect04=595;
ObjEffect_SetVertexXY(obj, 0,-W,-H);ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);ObjEffect_SetVertexUV(obj, 3, rect01, rect04);	
ObjEffect_SetTexture(obj,img3);
}

if(Scene==3){
}else{
ObjEffect_SetTexture(obj,imgNo);

}
if(Scene==7){
ObjEffect_SetTexture(obj,imgNo);
Obj_Delete(obj);
break;
}
yield;
}
}
task CharacterCommand{//難易度選択意コマンドに使用
let X=Cx+200;
let Y=Cy;
let img1="script\img-Title\PlayerSelect Reimu.png";
let img2="script\img-Title\PlayerSelect Dummy.png";
let img3="script\img-Title\PlayerSelect Dummy.png";
let imgNo="script\img-Title\.png";
let rect01=0;
let rect02=0;
let rect03=352;
let rect04=232;
let Layer=8;
let alpha=255;
let angle=0;
let scale=0;
let W=(rect03-rect01)/2;
let H=(rect04-rect02)/2;
let frame=0;
let frame1=0;
let Collar=255;
let obj = Obj_Create(OBJ_EFFECT);
LoadGraphic(img1);
LoadGraphic(img2);
LoadGraphic(img3);
ObjEffect_SetTexture(obj,img1);
ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLEFAN);
ObjEffect_CreateVertex(obj, 4);
ObjEffect_SetLayer(obj,Layer);
Obj_SetPosition(obj,X,Y);
ObjEffect_SetAngle(obj,angle,angle,0);
ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetVertexXY(obj, 0,-W,-H);
ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);
ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);
ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);
ObjEffect_SetVertexUV(obj, 3, rect01, rect04);
ObjEffect_SetVertexColor(obj, 0, 255, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 1, 255, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 2, 255, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 3, 255, 255, 255, alpha);
ObjEffect_SetRenderState(obj,ALPHA);
loop{
frame1++;
ObjEffect_SetVertexColor(obj, 0, Collar, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 1, Collar, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 2, Collar, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 3, Collar, 255, 255, alpha);
ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetAngle(obj,angle,angle,0);
Obj_SetPosition(obj,X,Y);

if(alpha>255){
}else{
alpha+=10;
}
if(scale>1){
}else{
scale+=0.05;
}

if(Command3==1){
ObjEffect_SetTexture(obj,img1);
}
if(Command3==2){
ObjEffect_SetTexture(obj,img2);
}
if(Command3==3){
ObjEffect_SetTexture(obj,img3);
}

if(Scene==3){
}else{
ObjEffect_SetTexture(obj,imgNo);

}
if(Scene==7){
ObjEffect_SetTexture(obj,imgNo);
Obj_Delete(obj);
break;
}
yield;
}
}
task RankCommand4{//難易度選択意コマンドに使用
let X=Cx+240;
let Y=Cy+130;
let img1="script\img-Title\ModeSelect.png";
let imgNo="script\img-Title\.png";
let rect01=224;
let rect02=0;
let rect03=447;
let rect04=143;
let Layer=8;
let alpha=255;
let angle=0;
let scale=0;
let W=(rect03-rect01)/2;
let H=(rect04-rect02)/2;
let frame=0;
let frame1=0;
let Collar=255;
let obj = Obj_Create(OBJ_EFFECT);
LoadGraphic(img1);
ObjEffect_SetTexture(obj,img1);
ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLEFAN);
ObjEffect_CreateVertex(obj, 4);
ObjEffect_SetLayer(obj,Layer);
Obj_SetPosition(obj,X,Y);
ObjEffect_SetAngle(obj,angle,angle,0);
ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetVertexXY(obj, 0,-W,-H);
ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);
ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);
ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);
ObjEffect_SetVertexUV(obj, 3, rect01, rect04);
ObjEffect_SetVertexColor(obj, 0, 255, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 1, 255, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 2, 255, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 3, 255, 255, 255, alpha);
ObjEffect_SetRenderState(obj,ALPHA);
loop{
frame1++;
ObjEffect_SetVertexColor(obj, 0, Collar, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 1, Collar, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 2, Collar, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 3, Collar, 255, 255, alpha);
ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetAngle(obj,angle,angle,0);

if(alpha>255){
}else{
alpha+=10;
}
if(scale>1){
}else{
scale+=0.05;
}

if(Command2==4){
ObjEffect_SetRenderState(obj,ALPHA);	
Collar=255;
}else{
Collar=140;
}

if(Scene==2){
ObjEffect_SetTexture(obj,img1);
}else{
ObjEffect_SetTexture(obj,imgNo);

}
if(Scene==7){
ObjEffect_SetTexture(obj,imgNo);
Obj_Delete(obj);
break;
}
yield;
}
}
task RankCommand3{//難易度選択意コマンドに使用
let X=Cx+140;
let Y=Cy+40;
let img1="script\img-Title\ModeSelect.png";
let imgNo="script\img-Title\.png";
let rect01=1;
let rect02=288;
let rect03=223;
let rect04=431;
let Layer=8;
let alpha=255;
let angle=0;
let scale=0;
let W=(rect03-rect01)/2;
let H=(rect04-rect02)/2;
let frame=0;
let frame1=0;
let Collar=255;
let obj = Obj_Create(OBJ_EFFECT);
LoadGraphic(img1);
ObjEffect_SetTexture(obj,img1);
ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLEFAN);
ObjEffect_CreateVertex(obj, 4);
ObjEffect_SetLayer(obj,Layer);
Obj_SetPosition(obj,X,Y);
ObjEffect_SetAngle(obj,angle,angle,0);
ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetVertexXY(obj, 0,-W,-H);
ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);
ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);
ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);
ObjEffect_SetVertexUV(obj, 3, rect01, rect04);
ObjEffect_SetVertexColor(obj, 0, 255, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 1, 255, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 2, 255, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 3, 255, 255, 255, alpha);
ObjEffect_SetRenderState(obj,ALPHA);
loop{
frame1++;
ObjEffect_SetVertexColor(obj, 0, Collar, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 1, Collar, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 2, Collar, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 3, Collar, 255, 255, alpha);
ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetAngle(obj,angle,angle,0);

if(alpha>255){
}else{
alpha+=10;
}
if(scale>1){
}else{
scale+=0.05;
}

if(Command2==3){
ObjEffect_SetRenderState(obj,ALPHA);	
Collar=255;
}else{
Collar=140;
}

if(Scene==2){
ObjEffect_SetTexture(obj,img1);
}else{
ObjEffect_SetTexture(obj,imgNo);

}
if(Scene==7){
ObjEffect_SetTexture(obj,imgNo);
Obj_Delete(obj);
break;
}
yield;
}
}
task RankCommand2{//難易度選択意コマンドに使用
let X=Cx+40;
let Y=Cy-50;
let img1="script\img-Title\ModeSelect.png";
let imgNo="script\img-Title\.png";
let rect01=0;
let rect02=144;
let rect03=223;
let rect04=287;
let Layer=8;
let alpha=255;
let angle=0;
let scale=0;
let W=(rect03-rect01)/2;
let H=(rect04-rect02)/2;
let frame=0;
let frame1=0;
let Collar=255;
let obj = Obj_Create(OBJ_EFFECT);
LoadGraphic(img1);
ObjEffect_SetTexture(obj,img1);
ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLEFAN);
ObjEffect_CreateVertex(obj, 4);
ObjEffect_SetLayer(obj,Layer);
Obj_SetPosition(obj,X,Y);
ObjEffect_SetAngle(obj,angle,angle,0);
ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetVertexXY(obj, 0,-W,-H);
ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);
ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);
ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);
ObjEffect_SetVertexUV(obj, 3, rect01, rect04);
ObjEffect_SetVertexColor(obj, 0, 255, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 1, 255, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 2, 255, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 3, 255, 255, 255, alpha);
ObjEffect_SetRenderState(obj,ALPHA);
loop{
frame1++;
ObjEffect_SetVertexColor(obj, 0, Collar, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 1, Collar, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 2, Collar, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 3, Collar, 255, 255, alpha);
ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetAngle(obj,angle,angle,0);

if(alpha>255){
}else{
alpha+=10;
}
if(scale>1){
}else{
scale+=0.05;
}

if(Command2==2){
ObjEffect_SetRenderState(obj,ALPHA);	
Collar=255;
}else{
Collar=140;
}

if(Scene==2){
ObjEffect_SetTexture(obj,img1);
}else{
ObjEffect_SetTexture(obj,imgNo);

}
if(Scene==7){
ObjEffect_SetTexture(obj,imgNo);
Obj_Delete(obj);
break;
}
yield;
}
}
task RankCommand1{//難易度選択意コマンドに使用
let X=Cx-100;
let Y=Cy-140;
let img1="script\img-Title\ModeSelect.png";
let imgNo="script\img-Title\.png";
let rect01=0;
let rect02=0;
let rect03=213;
let rect04=143;
let Layer=8;
let alpha=255;
let angle=0;
let scale=0;
let W=(rect03-rect01)/2;
let H=(rect04-rect02)/2;
let frame=0;
let frame1=0;
let Collar=255;
let obj = Obj_Create(OBJ_EFFECT);
LoadGraphic(img1);
ObjEffect_SetTexture(obj,img1);
ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLEFAN);
ObjEffect_CreateVertex(obj, 4);
ObjEffect_SetLayer(obj,Layer);
Obj_SetPosition(obj,X,Y);
ObjEffect_SetAngle(obj,angle,angle,0);
ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetVertexXY(obj, 0,-W,-H);
ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);
ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);
ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);
ObjEffect_SetVertexUV(obj, 3, rect01, rect04);
ObjEffect_SetVertexColor(obj, 0, 255, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 1, 255, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 2, 255, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 3, 255, 255, 255, alpha);
ObjEffect_SetRenderState(obj,ALPHA);
loop{
frame1++;
ObjEffect_SetVertexColor(obj, 0, Collar, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 1, Collar, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 2, Collar, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 3, Collar, 255, 255, alpha);
ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetAngle(obj,angle,angle,0);

if(alpha>255){
}else{
alpha+=10;
}
if(scale>1){
}else{
scale+=0.05;
}

if(Command2==1){
ObjEffect_SetRenderState(obj,ALPHA);	
Collar=255;
}else{
Collar=140;
}

if(Scene==2){
ObjEffect_SetTexture(obj,img1);
}else{
ObjEffect_SetTexture(obj,imgNo);

}
if(Scene==7){
ObjEffect_SetTexture(obj,imgNo);
Obj_Delete(obj);
break;
}
yield;
}
}
task TitleCommand4{//タイトルのコマンドに使用
let X=Cx-130;
let Y=Cy+120;
let img1="script\img-Title\MainmenuSelect.png";
let img2="script\img-Title\.png";
let rect01=0;
let rect02=64;
let rect03=207;
let rect04=127;
let Layer=8;
let alpha=0;
let angle=0;
let scale=0;
let W=(rect03-rect01)/2;
let H=(rect04-rect02)/2;
let frame=0;
let frame1=0;
let Collar=255;
let obj = Obj_Create(OBJ_EFFECT);
LoadGraphic(img1);
ObjEffect_SetTexture(obj,img1);
ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLEFAN);ObjEffect_CreateVertex(obj, 4);
ObjEffect_SetLayer(obj,Layer);Obj_SetPosition(obj,X,Y);
ObjEffect_SetAngle(obj,angle,angle,0);ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetVertexXY(obj, 0,-W,-H);ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);ObjEffect_SetVertexUV(obj, 3, rect01, rect04);
ObjEffect_SetVertexColor(obj, 0, alpha, 255, 255, 255);
ObjEffect_SetVertexColor(obj, 1, alpha, 255, 255, 255);
ObjEffect_SetVertexColor(obj, 2, alpha, 255, 255, 255);
ObjEffect_SetVertexColor(obj, 3, alpha, 255, 255, 255);
ObjEffect_SetRenderState(obj,ALPHA);
Obj_SetSpeed(obj,3 );
Obj_SetAngle(obj,0);
loop{
frame1++;
ObjEffect_SetVertexColor(obj, 0, Collar, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 1, Collar, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 2, Collar, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 3, Collar, 255, 255, alpha);
ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetAngle(obj,angle,angle,0);
if(frame1==5){
Obj_SetSpeed(obj,4);
}
if(frame1==10){
Obj_SetSpeed(obj,5);
}
if(frame1==15){
Obj_SetSpeed(obj,6);
}
if(frame1==20){
Obj_SetSpeed(obj,7);
}
if(frame1==25){
Obj_SetSpeed(obj,0);
}
if(alpha>255){
}else{
alpha+=10;
}
if(scale>1){
}else{
scale+=0.05;
}

if(Command1==4){
rect01=0; rect02=192;
rect03=207; rect04=255;
ObjEffect_SetVertexXY(obj, 0,-W,-H);ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);ObjEffect_SetVertexUV(obj, 3, rect01, rect04);	
}else{
rect01=208; rect02=192;
rect03=415; rect04=255;
ObjEffect_SetVertexXY(obj, 0,-W,-H);ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);ObjEffect_SetVertexUV(obj, 3, rect01, rect04);
}
if(Scene==1){
ObjEffect_SetTexture(obj,img1);
}else{
ObjEffect_SetTexture(obj,img2);
}
if(Scene==7){
Obj_Delete(obj);
break;
}
yield;
}
}
task TitleCommand3{//タイトルのコマンドに使用
let X=Cx-130;
let Y=Cy+80;
let img1="script\img-Title\MainmenuSelect.png";
let img2="script\img-Title\.png";
let rect01=0;
let rect02=64;
let rect03=207;
let rect04=127;
let Layer=8;
let alpha=0;
let angle=0;
let scale=0;
let W=(rect03-rect01)/2;
let H=(rect04-rect02)/2;
let frame=0;
let frame1=0;
let Collar=255;
let obj = Obj_Create(OBJ_EFFECT);
LoadGraphic(img1);
ObjEffect_SetTexture(obj,img1);
ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLEFAN);ObjEffect_CreateVertex(obj, 4);
ObjEffect_SetLayer(obj,Layer);Obj_SetPosition(obj,X,Y);
ObjEffect_SetAngle(obj,angle,angle,0);ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetVertexXY(obj, 0,-W,-H);ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);ObjEffect_SetVertexUV(obj, 3, rect01, rect04);
ObjEffect_SetVertexColor(obj, 0, alpha, 255, 255, 255);
ObjEffect_SetVertexColor(obj, 1, alpha, 255, 255, 255);
ObjEffect_SetVertexColor(obj, 2, alpha, 255, 255, 255);
ObjEffect_SetVertexColor(obj, 3, alpha, 255, 255, 255);
ObjEffect_SetRenderState(obj,ALPHA);
Obj_SetSpeed(obj,3 );
Obj_SetAngle(obj,0);
loop{
frame1++;
ObjEffect_SetVertexColor(obj, 0, Collar, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 1, Collar, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 2, Collar, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 3, Collar, 255, 255, alpha);
ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetAngle(obj,angle,angle,0);
if(frame1==5){
Obj_SetSpeed(obj,4);
}
if(frame1==10){
Obj_SetSpeed(obj,5);
}
if(frame1==15){
Obj_SetSpeed(obj,6);
}
if(frame1==20){
Obj_SetSpeed(obj,7);
}
if(frame1==25){
Obj_SetSpeed(obj,0);
}
if(alpha>255){
}else{
alpha+=10;
}
if(scale>1){
}else{
scale+=0.05;
}

if(Command1==3){
rect01=0; rect02=128;
rect03=207; rect04=191;
ObjEffect_SetVertexXY(obj, 0,-W,-H);ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);ObjEffect_SetVertexUV(obj, 3, rect01, rect04);	
}else{
rect01=208; rect02=128;
rect03=415; rect04=191;
ObjEffect_SetVertexXY(obj, 0,-W,-H);ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);ObjEffect_SetVertexUV(obj, 3, rect01, rect04);
}
if(Scene==1){
ObjEffect_SetTexture(obj,img1);
}else{
ObjEffect_SetTexture(obj,img2);
}
if(Scene==7){
Obj_Delete(obj);
break;
}
yield;
}
}
task TitleCommand2{//タイトルのコマンドに使用
let X=Cx-130;
let Y=Cy+40;
let img1="script\img-Title\MainmenuSelect.png";
let img2="script\img-Title\.png";
let rect01=0;
let rect02=64;
let rect03=207;
let rect04=127;
let Layer=8;
let alpha=0;
let angle=0;
let scale=0;
let W=(rect03-rect01)/2;
let H=(rect04-rect02)/2;
let frame=0;
let frame1=0;
let Collar=255;
let obj = Obj_Create(OBJ_EFFECT);
LoadGraphic(img1);
ObjEffect_SetTexture(obj,img1);
ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLEFAN);ObjEffect_CreateVertex(obj, 4);
ObjEffect_SetLayer(obj,Layer);Obj_SetPosition(obj,X,Y);
ObjEffect_SetAngle(obj,angle,angle,0);ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetVertexXY(obj, 0,-W,-H);ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);ObjEffect_SetVertexUV(obj, 3, rect01, rect04);
ObjEffect_SetVertexColor(obj, 0, alpha, 255, 255, 255);
ObjEffect_SetVertexColor(obj, 1, alpha, 255, 255, 255);
ObjEffect_SetVertexColor(obj, 2, alpha, 255, 255, 255);
ObjEffect_SetVertexColor(obj, 3, alpha, 255, 255, 255);
ObjEffect_SetRenderState(obj,ALPHA);
Obj_SetSpeed(obj,3 );
Obj_SetAngle(obj,0);
loop{
frame1++;
ObjEffect_SetVertexColor(obj, 0, Collar, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 1, Collar, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 2, Collar, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 3, Collar, 255, 255, alpha);
ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetAngle(obj,angle,angle,0);
if(frame1==5){
Obj_SetSpeed(obj,4);
}
if(frame1==10){
Obj_SetSpeed(obj,5);
}
if(frame1==15){
Obj_SetSpeed(obj,6);
}
if(frame1==20){
Obj_SetSpeed(obj,7);
}
if(frame1==25){
Obj_SetSpeed(obj,0);
}
if(alpha>255){
}else{
alpha+=10;
}
if(scale>1){
}else{
scale+=0.05;
}

if(Command1==2){
rect01=0; rect02=64;
rect03=207; rect04=127;
ObjEffect_SetVertexXY(obj, 0,-W,-H);ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);ObjEffect_SetVertexUV(obj, 3, rect01, rect04);	
}else{
rect01=208; rect02=64;
rect03=415; rect04=127;
ObjEffect_SetVertexXY(obj, 0,-W,-H);ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);ObjEffect_SetVertexUV(obj, 3, rect01, rect04);
}
if(Scene==1){
ObjEffect_SetTexture(obj,img1);
}else{
ObjEffect_SetTexture(obj,img2);
}
if(Scene==7){
Obj_Delete(obj);
break;
}
yield;
}
}
task TitleCommand1{//タイトルのコマンドに使用
let X=Cx-130;
let Y=Cy;
let img1="script\img-Title\MainmenuSelect.png";
let img2="script\img-Title\.png";
let rect01=0;
let rect02=0;
let rect03=207;
let rect04=62;
let Layer=8;
let alpha=0;
let angle=0;
let scale=0;
let W=(rect03-rect01)/2;
let H=(rect04-rect02)/2;
let frame=0;
let frame1=0;
let Collar=255;
let obj = Obj_Create(OBJ_EFFECT);
LoadGraphic(img1);
ObjEffect_SetTexture(obj,img1);
ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLEFAN);ObjEffect_CreateVertex(obj, 4);
ObjEffect_SetLayer(obj,Layer);Obj_SetPosition(obj,X,Y);
ObjEffect_SetAngle(obj,angle,angle,0);ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetVertexXY(obj, 0,-W,-H);ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);ObjEffect_SetVertexUV(obj, 3, rect01, rect04);
ObjEffect_SetVertexColor(obj, 0, alpha, 255, 255, 255);
ObjEffect_SetVertexColor(obj, 1, alpha, 255, 255, 255);
ObjEffect_SetVertexColor(obj, 2, alpha, 255, 255, 255);
ObjEffect_SetVertexColor(obj, 3, alpha, 255, 255, 255);
ObjEffect_SetRenderState(obj,ALPHA);
Obj_SetSpeed(obj,3 );
Obj_SetAngle(obj,0);
loop{
frame1++;
ObjEffect_SetVertexColor(obj, 0, Collar, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 1, Collar, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 2, Collar, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 3, Collar, 255, 255, alpha);
ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetAngle(obj,angle,angle,0);
if(frame1==5){
Obj_SetSpeed(obj,4);
}
if(frame1==10){
Obj_SetSpeed(obj,5);
}
if(frame1==15){
Obj_SetSpeed(obj,6);
}
if(frame1==20){
Obj_SetSpeed(obj,7);
}
if(frame1==25){
Obj_SetSpeed(obj,0);
}
if(alpha>255){
}else{
alpha+=10;
}
if(scale>1){
}else{
scale+=0.05;
}

if(Command1==1){
rect01=0; rect02=0;
rect03=207; rect04=63;
ObjEffect_SetVertexXY(obj, 0,-W,-H);ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);ObjEffect_SetVertexUV(obj, 3, rect01, rect04);	
}else{
rect01=208; rect02=0;
rect03=415; rect04=63;
ObjEffect_SetVertexXY(obj, 0,-W,-H);ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);ObjEffect_SetVertexUV(obj, 3, rect01, rect04);
}
if(Scene==1){
ObjEffect_SetTexture(obj,img1);
}else{
ObjEffect_SetTexture(obj,img2);
}
if(Scene==7){
Obj_Delete(obj);
break;
}
yield;
}
}
task TitleReimu{//タイトル背景画面に使用
let X=Cx+95;
let Y=Cy+70;
let img1="script\img-Title\TitleReimu.png";
let imgNo="script\img-Title\";
let rect01=0;let rect02=0;
let rect03=453;let rect04=422;
let Layer=8;let alpha=0;
let angle=0;let scale=1;
let W=(rect03-rect01)/2;let H=(rect04-rect02)/2;
let frame=0;let frame1=0;
let obj = Obj_Create(OBJ_EFFECT);
LoadGraphic(img1);
ObjEffect_SetTexture(obj,img1);
ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLEFAN);ObjEffect_CreateVertex(obj, 4);
ObjEffect_SetLayer(obj,Layer);Obj_SetPosition(obj,X,Y);
ObjEffect_SetAngle(obj,angle,angle,0);ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetVertexXY(obj, 0,-W,-H);ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);ObjEffect_SetVertexUV(obj, 3, rect01, rect04);
ObjEffect_SetVertexColor(obj, 0, alpha, 255, 255, 255);ObjEffect_SetVertexColor(obj, 1, alpha, 255, 255, 255);
ObjEffect_SetVertexColor(obj, 2, alpha, 255, 255, 255);ObjEffect_SetVertexColor(obj, 3, alpha, 255, 255, 255);
loop{
ObjEffect_SetVertexColor(obj, 0, alpha, 255, 255, 255);ObjEffect_SetVertexColor(obj, 1, alpha, 255, 255, 255);
ObjEffect_SetVertexColor(obj, 2, alpha, 255, 255, 255);ObjEffect_SetVertexColor(obj, 3, alpha, 255, 255, 255);
ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetAngle(obj,0,0,angle);
if(alpha>255){
}else{
alpha+=5;
}
if(Scene==1){
ObjEffect_SetTexture(obj,img1);
}else{
ObjEffect_SetTexture(obj,imgNo);
}
if(Scene==7){
ObjEffect_SetTexture(obj,imgNo);
Obj_Delete(obj);
break;
}
yield;
}
}
task TitleName{//タイトル名に使用
let X=Cx+95;
let Y=Cy-160;
let img1="script\img-Title\TitleName.png";
let img2="script\img-Title\RankName.png";
let img3="script\img-Title\PlayerName.png";
let imgNo="script\img-Title\";
let rect01=0;let rect02=0;
let rect03=640;let rect04=229;
let Layer=8;let alpha=0;
let angle=-200;let scale=0;
let W=(rect03-rect01)/2;let H=(rect04-rect02)/2;
let frame=0;let frame1=0;
let obj = Obj_Create(OBJ_EFFECT);
LoadGraphic(img1);LoadGraphic(img2);LoadGraphic(img3);
ObjEffect_SetTexture(obj,img1);ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLEFAN);
ObjEffect_CreateVertex(obj, 4);ObjEffect_SetLayer(obj,Layer);
Obj_SetPosition(obj,X,Y);ObjEffect_SetAngle(obj,angle,angle,0);
ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetVertexXY(obj, 0,-W,-H);ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);ObjEffect_SetVertexUV(obj, 3, rect01, rect04);
ObjEffect_SetVertexColor(obj, 0, 255, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 1, 255, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 2, 255, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 3, 255, 255, 255, alpha);
loop{
ObjEffect_SetVertexColor(obj, 0, 255, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 1, 255, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 2, 255, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 3, 255, 255, 255, alpha);
ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetAngle(obj,angle,angle,0);
if(alpha>255){
}else{
alpha+=10;
}
if(scale>1){
}else{
scale+=0.05;
}
if(angle>0){
}else{
angle+=5;
}
if(Scene==1){
ObjEffect_SetTexture(obj,img1);
X=Cx+95;
Y=Cy-160;
Obj_SetPosition(obj,X,Y);
rect01=0; rect02=0;
rect03=640; rect04=229;
W=(rect03-rect01)/2;
H=(rect04-rect02)/2;
ObjEffect_SetVertexXY(obj, 0,-W,-H);ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);ObjEffect_SetVertexUV(obj, 3, rect01, rect04);
}
if(Scene==2){
ObjEffect_SetTexture(obj,img2);
Y=Cy-200;
Obj_SetPosition(obj,X,Y);
rect01=0; rect02=0;
rect03=288; rect04=80;
W=(rect03-rect01)/2;
H=(rect04-rect02)/2;
ObjEffect_SetVertexXY(obj, 0,-W,-H);ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);ObjEffect_SetVertexUV(obj, 3, rect01, rect04);
}
if(Scene==3){
ObjEffect_SetTexture(obj,img3);
Y=Cy-200;
Obj_SetPosition(obj,X,Y);
rect01=0; rect02=0;
rect03=288; rect04=80;
W=(rect03-rect01)/2;
H=(rect04-rect02)/2;
ObjEffect_SetVertexXY(obj, 0,-W,-H);ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);ObjEffect_SetVertexUV(obj, 3, rect01, rect04);
}
if(Scene==7){
ObjEffect_SetTexture(obj,imgNo);
Obj_Delete(obj);
break;
}
yield;
}
}
task TitleBack{//タイトル背景画面に使用
let X=Cx+95;
let Y=Cy;
let img1="script\img-Title\TitleBack.png";
let imgNo="script\img-Title\";
let rect01=0;let rect02=0;
let rect03=640;let rect04=480;
let Layer=8;let alpha=0;
let angle=0;let scale=0;
let W=(rect03-rect01)/2;let H=(rect04-rect02)/2;
let frame=0;let frame1=0;
let obj = Obj_Create(OBJ_EFFECT);
LoadGraphic(img1);
ObjEffect_SetTexture(obj,img1);
ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLEFAN);ObjEffect_CreateVertex(obj, 4);
ObjEffect_SetLayer(obj,Layer);Obj_SetPosition(obj,X,Y);
ObjEffect_SetAngle(obj,angle,angle,0);ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetVertexXY(obj, 0,-W,-H);ObjEffect_SetVertexXY(obj, 1, W,-H);
ObjEffect_SetVertexXY(obj, 2, W, H);ObjEffect_SetVertexXY(obj, 3,-W, H);
ObjEffect_SetVertexUV(obj, 0, rect01, rect02);ObjEffect_SetVertexUV(obj, 1, rect03, rect02);
ObjEffect_SetVertexUV(obj, 2, rect03, rect04);ObjEffect_SetVertexUV(obj, 3, rect01, rect04);
ObjEffect_SetVertexColor(obj, 0, 255, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 1, 255, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 2, 255, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 3, 255, 255, 255, alpha);
loop{
ObjEffect_SetVertexColor(obj, 0, 255, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 1, 255, 255, 255, alpha);
ObjEffect_SetVertexColor(obj, 2, 255, 255, 255, alpha);ObjEffect_SetVertexColor(obj, 3, 255, 255, 255, alpha);
ObjEffect_SetScale(obj,scale,scale);
ObjEffect_SetAngle(obj,0,0,angle);
if(alpha>255){
}else{
alpha+=10;
}
if(scale>1){
}else{
scale+=0.04;
}
if(Scene==1){
ObjEffect_SetTexture(obj,img1);
}
if(Scene==2){
ObjEffect_SetTexture(obj,img1);
}
if(Scene==3){
ObjEffect_SetTexture(obj,img1);
}
if(Scene==7){
ObjEffect_SetTexture(obj,imgNo);
Obj_Delete(obj);
break;
}else{
frame1++;
if(frame1==10){
FlourDrop;
frame1=0;
}

}
yield;
}
}