task BackgroundEllen{
	let scroll = 0;
	let obj=ObjPrim_Create(OBJ_SPRITE_2D);
	
	Obj_SetRenderPriorityI(obj,21);
	ObjPrim_SetTexture(obj,GetCurrentScriptDirectory ~ "/img/Ingame/ellenbg.png");
	ObjSprite2D_SetSourceRect(obj,0,0,512,512);
	ObjSprite2D_SetDestCenter(obj);
	ObjRender_SetScaleXYZ(obj, 1.5, 1.5, 1);
	ObjRender_SetBlendType(obj,BLEND_ALPHA);
	ObjRender_SetPosition(obj,GetStgFrameWidth/2, GetStgFrameHeight/2,0);
	
	loop{
	ObjRender_SetAngleZ(obj, scroll*0.25);
	scroll++;
	yield;
	}
}

task BackgroundKana{
	let scroll = 0;
	let obj=ObjPrim_Create(OBJ_SPRITE_2D);
	
	Obj_SetRenderPriorityI(obj,21);
	ObjPrim_SetTexture(obj,GetCurrentScriptDirectory ~ "/img/Ingame/kanabg.png");
	ObjSprite2D_SetSourceRect(obj,0,0,512,512);
	ObjSprite2D_SetDestCenter(obj);
	ObjRender_SetScaleXYZ(obj, 1.5, 1.5, 1);
	ObjRender_SetBlendType(obj,BLEND_ALPHA);
	ObjRender_SetPosition(obj,GetStgFrameWidth/2, GetStgFrameHeight/2,0);
	
	loop{
	ObjRender_SetAngleZ(obj, -scroll*0.25);
	scroll++;
	yield;
	}
}

task EllBackground{
let scroll = 0;
	let obj=ObjPrim_Create(OBJ_SPRITE_2D);
	
	Obj_SetRenderPriorityI(obj,21);
	ObjPrim_SetTexture(obj,GetCurrentScriptDirectory ~ "/img/Ingame/ellspell1.png");
	ObjSprite2D_SetSourceRect(obj,0,0,512,512);
	ObjSprite2D_SetDestCenter(obj);
	ObjRender_SetScaleXYZ(obj, 1.5, 1.5, 1);
	ObjRender_SetBlendType(obj,BLEND_ALPHA);
	ObjRender_SetPosition(obj,GetStgFrameWidth/2, GetStgFrameHeight/2,0);
	
	loop{
	ObjRender_SetAngleZ(obj, scroll*0.25);
	scroll++;
	yield;
	}
	Obj_Delete(obj);

}

task EllBackground2{
	let obj=ObjPrim_Create(OBJ_SPRITE_2D);
	
	Obj_SetRenderPriorityI(obj,21);
	ObjPrim_SetTexture(obj,GetCurrentScriptDirectory ~ "/img/Ingame/ellspell2.png");
	ObjSprite2D_SetSourceRect(obj,0,0,512,512);
	ObjSprite2D_SetDestCenter(obj);
	ObjRender_SetScaleXYZ(obj, 1,1,1);
	ObjRender_SetBlendType(obj,BLEND_ALPHA);
	ObjRender_SetAlpha(obj, 166);
	ObjRender_SetPosition(obj,GetStgFrameWidth/2, GetStgFrameHeight/2,0);
	
	loop{
	yield;
	}
	Obj_Delete(obj);

}

task EllBackground3{
	let count = 0;
	let obj=ObjPrim_Create(OBJ_SPRITE_2D);
	
	Obj_SetRenderPriorityI(obj,21);
	ObjPrim_SetTexture(obj,GetCurrentScriptDirectory ~ "/img/Ingame/ellspell3.png");
	ObjSprite2D_SetSourceRect(obj,0,0,200,440);
	ObjSprite2D_SetDestCenter(obj);
	ObjRender_SetScaleXYZ(obj, 1,1,1);
	ObjRender_SetBlendType(obj,BLEND_ALPHA);
	ObjRender_SetPosition(obj,GetStgFrameWidth/2, GetStgFrameHeight/2,0);
	
	loop{
	count++;
	ObjRender_SetAlpha(obj, 170+40*cos(count/3));
	yield;
	}
	Obj_Delete(obj);

}

task EllBackground4{
let scroll = 0;
	let obj=ObjPrim_Create(OBJ_SPRITE_2D);
	
	Obj_SetRenderPriorityI(obj,21);
	ObjPrim_SetTexture(obj,GetCurrentScriptDirectory ~ "/img/Ingame/ellspell4.png");
	ObjSprite2D_SetSourceRect(obj,0,0,512,512);
	ObjSprite2D_SetDestCenter(obj);
	ObjRender_SetScaleXYZ(obj, 1, 1.5, 1);
	ObjRender_SetBlendType(obj,BLEND_ALPHA);
	ObjRender_SetPosition(obj,GetStgFrameWidth/2, GetStgFrameHeight/2,0);
	
	loop{
	ObjSprite2D_SetSourceRect(obj,0,(scroll*1.5),512,(scroll*1.5)+512);
	scroll++;
	yield;
	}
	Obj_Delete(obj);

}

task KanBackground{
	let obj=ObjPrim_Create(OBJ_SPRITE_2D);
	
	Obj_SetRenderPriorityI(obj,21);
	ObjPrim_SetTexture(obj,GetCurrentScriptDirectory ~ "/img/Ingame/kanspell1.png");
	ObjSprite2D_SetSourceRect(obj,0,0,512,512);
	ObjSprite2D_SetDestCenter(obj);
	ObjRender_SetScaleXYZ(obj, 1, 1, 1);
	ObjRender_SetBlendType(obj,BLEND_ALPHA);
	ObjRender_SetPosition(obj,GetStgFrameWidth/2, GetStgFrameHeight/2,0);
	
	loop{
	yield;
	}
	Obj_Delete(obj);

}

task KanBackground2{
	let count = 0;
	let obj=ObjPrim_Create(OBJ_SPRITE_2D);
	
	Obj_SetRenderPriorityI(obj,21);
	ObjPrim_SetTexture(obj,GetCurrentScriptDirectory ~ "/img/Ingame/kanspell2.png");
	ObjSprite2D_SetSourceRect(obj,0,0,200,440);
	ObjSprite2D_SetDestCenter(obj);
	ObjRender_SetScaleXYZ(obj, 2,2,1);
	ObjRender_SetBlendType(obj,BLEND_ALPHA);
	ObjRender_SetPosition(obj,GetStgFrameWidth/2+50, GetStgFrameHeight/2+120,0);
	
	loop{
	count++;
	ObjRender_SetAlpha(obj, 170+40*cos(count/3));
	yield;
	}
	Obj_Delete(obj);

}
