i used this code and copied most of it from dan post tank game but there seems to be a problem check code for comment bottom of program
import greenfoot.*;
public class luigi extends Actor
{
private Actor turret;
private int targetX, targetY;
private int trackTimer;
public luigi()
{
GreenfootImage image = getImage();
image.scale(image.getWidth() - 150, image.getHeight() - 200);
setImage(image);
turret = Terrain.getNewActor();
turret.setImage("turret.png");
}
protected void addedToWorld(World level1)
{
if(turret.getWorld() != world) world.addObject(turret, getX(), getY());
else turret.setLocation(getX(), getY());
targetX = world.getWidth()/2;
targetY = world.getHeight()/2;
turnTowards(targetX,targetY);
turret.turnTowards(targetX, targetY);
}
public void act()
{
if(Greenfoot.mouseMoved(null)|| Greenfoot.mousedragged(null))
{
MouseInfo mouse = Greenfoot.getMouseInfo();
targetX = mouse.getX();
targetY = mouse.getY();
}
}
int angleToTarget = (int)(Math.atan2(getY()-targetY,getX()-targetX)*180/Math.PI);
int rotationToTarget = (turret.getRotation()-angleToTarget+540)%360-180;
int directionOfRotation = (int)Math.signum(rotationToTarget);
turret.turn(VAL*3/3*directionOfRotation); //error here saying that there shouldbe an identifier after 'VAL'
if(Greenfoot.mouseClicked(null)&&getObjectInRange(150,Shot.class).isEmpty()) // error illegal start
{
Shot shot = new Shot();
getWorld().addObject(shot, getX(), getY()); //error
shot.move(VAL*30); //error
}

