function Portrait(character,cutintype){

if(cutintype==1 || cutintype==3){

if(time==0){
let xcutinsize=599;
let ycutinsize=599;
	OBJcutin=(Obj_Create(OBJ_EFFECT));
	ObjEffect_SetLayer(OBJcutin,7); Obj_SetPosition(OBJcutin,cx,cy);
	if(character=="Kurumi"){ ObjEffect_SetTexture(OBJcutin,CUTINkurumi1); }
	if(character=="Hotaru"){ ObjEffect_SetTexture(OBJcutin,CUTINhotaru1); }
	if(character=="Tomoko"){ ObjEffect_SetTexture(OBJcutin,CUTINtomoko1); }
	if(character=="Setsuko"){ ObjEffect_SetTexture(OBJcutin,CUTINsetsuko1); }
	if(character=="Ayano"){ ObjEffect_SetTexture(OBJcutin,CUTINayano1); }
	if(character=="Midori"){ ObjEffect_SetTexture(OBJcutin,CUTINmidori1); }
	if(character=="Tomomi"){ ObjEffect_SetTexture(OBJcutin,CUTINtomomi1); }
	if(character=="Youko"){ ObjEffect_SetTexture(OBJcutin,CUTINyouko1); }
	if(character=="Amaya"){ ObjEffect_SetTexture(OBJcutin,CUTINamaya1); }
	if(character=="Sayuri"){ ObjEffect_SetTexture(OBJcutin,CUTINsayuri1); }
	if(character=="Mai"){ ObjEffect_SetTexture(OBJcutin,CUTINmai1); }
	if(character=="Haruna"){ ObjEffect_SetTexture(OBJcutin,CUTINharuna1); }
	if(character=="Takeo"){ ObjEffect_SetTexture(OBJcutin,CUTINtakeo); }
	if(character=="Masahiro"){ ObjEffect_SetTexture(OBJcutin,CUTINmasahiro); }
	if(character=="Ryo"){ ObjEffect_SetTexture(OBJcutin,CUTINryo); }
	if(character=="Shinichi"){ ObjEffect_SetTexture(OBJcutin,CUTINshinichi); }
	if(character=="Nanami"){ ObjEffect_SetTexture(OBJcutin,CUTINnanami); }
	if(character=="SetsukoShinichi"){ ObjEffect_SetTexture(OBJcutin,CUTINsetsukoshinichi); }
	if(character=="SayuriMai"){ ObjEffect_SetTexture(OBJcutin,CUTINsayurimai); }
	if(character=="KurumiHotaru"){ ObjEffect_SetTexture(OBJcutin,CUTINkurumihotaru); }
	if(character=="TomomiTakeo"){ ObjEffect_SetTexture(OBJcutin,CUTINtomomitakeo); }
	if(cutintype==3){ ObjEffect_SetTexture(OBJcutin,CUTINtomoko2); }
	if(character=="Witches"){ ObjEffect_SetTexture(OBJcutin,CUTINwitches); }
	ObjEffect_SetRenderState(OBJcutin,ADD); ObjEffect_SetScale(OBJcutin,cutinsize,cutinsize);
	ObjEffect_SetPrimitiveType(OBJcutin,PRIMITIVE_TRIANGLESTRIP); ObjEffect_CreateVertex(OBJcutin,4);
	ObjEffect_SetVertexXY(OBJcutin,0,-(xcutinsize/2),-(ycutinsize/2)); ObjEffect_SetVertexUV(OBJcutin,0,0,0);
	ObjEffect_SetVertexXY(OBJcutin,1,xcutinsize/2,-(ycutinsize/2)); ObjEffect_SetVertexUV(OBJcutin,1,xcutinsize,0);
	ObjEffect_SetVertexXY(OBJcutin,2,-(xcutinsize/2),ycutinsize/2); ObjEffect_SetVertexUV(OBJcutin,2,0,ycutinsize);
	ObjEffect_SetVertexXY(OBJcutin,3,xcutinsize/2,ycutinsize/2); ObjEffect_SetVertexUV(OBJcutin,3,xcutinsize,ycutinsize);
	ObjEffect_SetVertexColor(OBJcutin,0,cutinalpha,255,255,255); ObjEffect_SetVertexColor(OBJcutin,1,cutinalpha,255,255,255);
	ObjEffect_SetVertexColor(OBJcutin,2,cutinalpha,255,255,255); ObjEffect_SetVertexColor(OBJcutin,3,cutinalpha,255,255,255);
}
	if(time<50){ cutinalpha+=5; }
	if(cutinalpha>0 && time>=50){ cutinalpha-=2; }
	if(time>=50){
	Obj_SetPosition(OBJcutin,cx,Obj_GetY(OBJcutin)+10);
	cutinsize+=0.1;
	}
	ObjEffect_SetVertexColor(OBJcutin,0,cutinalpha,255,255,255); ObjEffect_SetVertexColor(OBJcutin,1,cutinalpha,255,255,255);
	ObjEffect_SetVertexColor(OBJcutin,2,cutinalpha,255,255,255); ObjEffect_SetVertexColor(OBJcutin,3,cutinalpha,255,255,255);
	ObjEffect_SetScale(OBJcutin,cutinsize,cutinsize);
	if(cutinalpha==0){
	Obj_Delete(OBJcutin);
	}
} //type==1

if(cutintype==2){

if(time==0){
let xcutinsize=599;
let ycutinsize=599;
	OBJcutin=(Obj_Create(OBJ_EFFECT));
	ObjEffect_SetLayer(OBJcutin,7); Obj_SetPosition(OBJcutin,cx,cy);
	if(character=="Kurumi"){ ObjEffect_SetTexture(OBJcutin,CUTINkurumi2); }
	if(character=="Hotaru"){ ObjEffect_SetTexture(OBJcutin,CUTINhotaru2); }
	if(character=="Tomoko"){ ObjEffect_SetTexture(OBJcutin,CUTINtomoko3); }
	if(character=="Setsuko"){ ObjEffect_SetTexture(OBJcutin,CUTINsetsuko2); }
	if(character=="Ayano"){ ObjEffect_SetTexture(OBJcutin,CUTINayano2); }
	if(character=="Midori"){ ObjEffect_SetTexture(OBJcutin,CUTINmidori2); }
	if(character=="Tomomi"){ ObjEffect_SetTexture(OBJcutin,CUTINtomomi2); }
	if(character=="Youko"){ ObjEffect_SetTexture(OBJcutin,CUTINyouko2); }
	if(character=="Amaya"){ ObjEffect_SetTexture(OBJcutin,CUTINamaya2); }
	if(character=="Sayuri"){ ObjEffect_SetTexture(OBJcutin,CUTINsayuri2); }
	if(character=="Mai"){ ObjEffect_SetTexture(OBJcutin,CUTINmai2); }
	if(character=="Haruna"){ ObjEffect_SetTexture(OBJcutin,CUTINharuna2); }
	if(character=="Takeo"){ ObjEffect_SetTexture(OBJcutin,CUTINtakeo); }
	if(character=="Masahiro"){ ObjEffect_SetTexture(OBJcutin,CUTINmasahiro); }
	if(character=="Ryo"){ ObjEffect_SetTexture(OBJcutin,CUTINryo); }
	if(character=="Shinichi"){ ObjEffect_SetTexture(OBJcutin,CUTINshinichi); }
	if(character=="Nanami"){ ObjEffect_SetTexture(OBJcutin,CUTINnanami); }
	if(character=="SetsukoShinichi"){ ObjEffect_SetTexture(OBJcutin,CUTINsetsukoshinichi); }
	if(character=="SayuriMai"){ ObjEffect_SetTexture(OBJcutin,CUTINsayurimai); }
	if(character=="KurumiHotaru"){ ObjEffect_SetTexture(OBJcutin,CUTINkurumihotaru); }
	if(character=="TomomiTakeo"){ ObjEffect_SetTexture(OBJcutin,CUTINtomomitakeo); }
	if(character=="Tomoko2"){ ObjEffect_SetTexture(OBJcutin,CUTINtomoko3); }
	if(character=="Witches"){ ObjEffect_SetTexture(OBJcutin,CUTINwitches); }
	ObjEffect_SetRenderState(OBJcutin,ADD); ObjEffect_SetScale(OBJcutin,cutinsize,cutinsize);
	ObjEffect_SetPrimitiveType(OBJcutin,PRIMITIVE_TRIANGLESTRIP); ObjEffect_CreateVertex(OBJcutin,4);
	ObjEffect_SetVertexXY(OBJcutin,0,-(xcutinsize/2),-(ycutinsize/2)); ObjEffect_SetVertexUV(OBJcutin,0,0,0);
	ObjEffect_SetVertexXY(OBJcutin,1,xcutinsize/2,-(ycutinsize/2)); ObjEffect_SetVertexUV(OBJcutin,1,xcutinsize,0);
	ObjEffect_SetVertexXY(OBJcutin,2,-(xcutinsize/2),ycutinsize/2); ObjEffect_SetVertexUV(OBJcutin,2,0,ycutinsize);
	ObjEffect_SetVertexXY(OBJcutin,3,xcutinsize/2,ycutinsize/2); ObjEffect_SetVertexUV(OBJcutin,3,xcutinsize,ycutinsize);
	ObjEffect_SetVertexColor(OBJcutin,0,cutinalpha,255,255,255); ObjEffect_SetVertexColor(OBJcutin,1,cutinalpha,255,255,255);
	ObjEffect_SetVertexColor(OBJcutin,2,cutinalpha,255,255,255); ObjEffect_SetVertexColor(OBJcutin,3,cutinalpha,255,255,255);
}

	if(time<50){ cutinalpha+=5; }
	if(cutinalpha>0 && time>=50){ cutinalpha-=2; }
	if(time>=50){
	Obj_SetPosition(OBJcutin,cx,Obj_GetY(OBJcutin)+10);
	cutinsize+=0.1;
	}
	ObjEffect_SetVertexColor(OBJcutin,0,cutinalpha,255,255,255); ObjEffect_SetVertexColor(OBJcutin,1,cutinalpha,255,255,255);
	ObjEffect_SetVertexColor(OBJcutin,2,cutinalpha,255,255,255); ObjEffect_SetVertexColor(OBJcutin,3,cutinalpha,255,255,255);
	ObjEffect_SetScale(OBJcutin,cutinsize,cutinsize);
	if(cutinalpha==0){
	Obj_Delete(OBJcutin);
	}
} //type==2


}
