Ok so my new issue is getting my bullet to rotate with my Hunter class. Ive got it attached so to speak as well as got it to fire on the use of a comand key but it will not rotate to fire in the direction that my Hunter is facing. Any suggestions?
public void act()
{
if(canSee(Tree.class))
{
turn(180);
}
if(Greenfoot.isKeyDown ("up"))
{
move();
}
if(Greenfoot.isKeyDown ("down"))
{
turn(180);
}
if(Greenfoot.isKeyDown ("left"))
{
turn(-7);
}
if(Greenfoot.isKeyDown ("right"))
{
turn(7);
}
if(Greenfoot.isKeyDown ("space"))
{
Fire();
}
}
public void Fire()
{
if ("space".equals(Greenfoot.getKey()))
{
getWorld().addObject(new Bullet(), getX(), getY());
}
}

