task Topattack1
{
let left=1;
loop
	{
	if(shotCount%3 == 0 &&level>=1)
		{
		if(level==1){left=left*-1;}
		else{left=1;}
		Tshot(OPX1,OPY1,left);
		}
	yield;
	}
}

task Topattack2
{
let left=-1;
loop
	{
	if(shotCount%3 == 0 &&level>=2)
		{
		Tshot(OPX2,OPY2,left);
		}
	yield;
	}
}

task Topattack3
{
let left=1;
loop
	{
	if(shotCount%3 == 0 &&level>=3)
		{
		if(level==3){left=left*-1;}
		else{left=1;}
		Tshot(OPX3,OPY3,left);
		}
	yield;
	}
}

task Topattack4
{
let left=-1;
loop
	{
	if(shotCount%3 == 0 &&level>=4)
		{
		Tshot(OPX4,OPY4,left);
		}
	yield;
	}
}