I have a tank but my image is in the wrong way. The image has to turn 90 degrees to the left. But I want that the actor keeps heading the same way. This is the code so far.
/**
* Creates the Tank and makes sure everything is all right.
*/
public TankBase()
{
tankBaseAmount++;
GreenfootImage.rotate(90);
}
/**
* Act - do whatever the TankBase wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
drive();
if (tankTurretAmount < tankBaseAmount)
{
getWorld().addObject (new TankTurret(), getX()+1, getY());
tankTurretAmount = tankTurretAmount + 1;
}
}

