task SlowEffect{
      SlowEffectdeta(SlowEffectObj[0],1,  1,105, 63,166, 0);
      SlowEffectdeta(SlowEffectObj[1],2, 64,104,126,166, 4);
      SlowEffectdeta(SlowEffectObj[2],2,127,104,191,166,-4);
}

task SlowEffectdeta(obj,pata,L,U,R,D,AngleSpeed){
	loop{
		yield;
		if(GetKeyState(VK_SLOWMOVE)==KEY_PUSH || GetKeyState(VK_SLOWMOVE)==KEY_HOLD){
			let EffectAngle=0;
			let Scale=1.4;
			if(pata == 1){Scale=0.5;}
			else{Scale=1.8;}
			Obj_SetAutoDelete(obj,false);
			ObjEffect_SetTexture(obj,EffectA);
			ObjEffect_SetPrimitiveType(obj,PRIMITIVE_TRIANGLESTRIP);
			ObjEffect_CreateVertex(obj,4);
			ObjEffect_SetVertexXY(obj,0,-32,-32);
			ObjEffect_SetVertexXY(obj,1, 32,-32);
			ObjEffect_SetVertexXY(obj,2,-32, 32);
			ObjEffect_SetVertexXY(obj,3, 32, 32);
			ObjEffect_SetVertexColor(obj,0,255,255,255,255);
			ObjEffect_SetVertexColor(obj,1,255,255,255,255);
			ObjEffect_SetVertexColor(obj,2,255,255,255,255);
			ObjEffect_SetVertexColor(obj,3,255,255,255,255);
			ObjEffect_SetVertexUV(obj,0,L,U);
			ObjEffect_SetVertexUV(obj,1,R,U);
			ObjEffect_SetVertexUV(obj,2,L,D);
			ObjEffect_SetVertexUV(obj,3,R,D);
			ObjEffect_SetScale(obj,Scale,Scale);
			loop(15){
				if(pata == 1){Scale+=0.5/15;}
				else{Scale-=0.5/15;}
				if(GetKeyState(VK_SLOWMOVE)==KEY_PULL||GetKeyState(VK_SLOWMOVE)==KEY_FREE){break;}
				ObjEffect_SetScale(obj,Scale,Scale);
				ObjEffect_SetAngle(obj,0,0,EffectAngle);
				EffectAngle+=AngleSpeed*2;
				yield;
			}
			loop{
				if(GetKeyState(VK_SLOWMOVE)==KEY_PULL||GetKeyState(VK_SLOWMOVE)==KEY_FREE){break;}
				ObjEffect_SetAngle(obj,0,0,EffectAngle);
				EffectAngle+=AngleSpeed;
				yield;
			}
			loop(10){
				Scale-=0.5/10;
				ObjEffect_SetScale(obj,Scale,Scale);
				ObjEffect_SetAngle(obj,0,0,EffectAngle);
				EffectAngle+=AngleSpeed*2;
				yield;
			}
			ObjEffect_SetVertexColor(obj,0,0,255,255,255);
			ObjEffect_SetVertexColor(obj,1,0,255,255,255);
			ObjEffect_SetVertexColor(obj,2,0,255,255,255);
			ObjEffect_SetVertexColor(obj,3,0,255,255,255);
		}

	}
}