I've been trying for a while to get"get.Rotation()" to work for a while and it just doesn't seem to want to work, the error message says non-static method getRotation() cannot be referenced from a static context. Here is my code -
public int humanRotation;
public Bullet()
{
GreenfootImage myImage = getImage();
int myNewWidth = (int)myImage.getWidth()/4;
int myNewHeight = (int)myImage.getHeight()/4;
myImage.scale(myNewWidth,myNewHeight);
}
public void act()
{
shoot();
move(-4);
}
public void shoot()
{
humanRotation = Human.getRotation();
setRotation(humanRotation);
}
}
