I really need help. My enemy can move from left to right, however the animation and the direction of view doesn't work.
private void move()
{
if(timer < 75)
{
blick=0;
setLocation(getX() + speed,getY());
}
else if(timer > 75)
{
blick=1;
speed = -speed;
getImage().mirrorHorizontally();
timer = 0;
}
if(blick == 0)
{
animateLeft();
}
if(blick == 1)
{
animateRight();
}
}

