task DoubleSpoilerCreateShot01(let x,let y,let speed,let angle, let graphic,let delay,let setgraphic,let basepoint)
{
	let obj = Obj_Create(OBJ_SHOT);
	Obj_SetPosition(obj, x, y);
	Obj_SetSpeed(obj, speed);
	Obj_SetAngle(obj, angle);
	ObjShot_SetGraphic(obj, graphic);
	ObjShot_SetDelay(obj, delay);
	loop(delay)
	{
		if(Obj_BeDeleted(obj)){break};
		yield;
	}
	while(!Obj_BeDeleted(obj))
	{
		yield;
	}
	if(GetCommonDataDefault("Shooting",false))
	{
		BasePoint(basepoint);
		BulletColor(setgraphic);
	}
}

task DoubleSpoilerCreateShot02(let x,let y,let speed,let angle,let aspeed,let maxspeed,let graphic,let delay,let setgraphic,let basepoint)
{
	let obj = Obj_Create(OBJ_SHOT);
	Obj_SetPosition(obj, x, y);
	Obj_SetSpeed(obj, speed);
	Obj_SetAngle(obj, angle);
	ObjShot_SetGraphic(obj, graphic);
	ObjShot_SetDelay(obj, delay);

	loop(delay)
	{
		if(Obj_BeDeleted(obj)){break};
		yield;
	}
	while(!Obj_BeDeleted(obj))
	{
		Obj_SetSpeed(obj, speed);
		if(speed<maxspeed)
		{
			speed+=aspeed;
		}
		yield;
	}
	if(GetCommonDataDefault("Shooting",false))
	{
		BasePoint(basepoint);
		BulletColor(setgraphic);
	}
}