boolean swingLeft = false;
int rotation = getRotation();
public void act()
{
turnRate(2);
}
public void turnRate(int xSpeed)
{
if (swingLeft == true)
{
this.turn(xSpeed);
}
else
{
this.turn(-xSpeed);
}
}
public void swing()
{
if(rotation == -135)
{
swingLeft = true;
}
else if (this.getRotation() == -45)
{
swingLeft = false;
}
}
