public void moveX(int playerX) {
        if(!dead){
            if(playerX > x){
                dx = .3;
            }else if(playerX < x){
                dx = -.3;
            }
            if(!knockback){
                x += dx;
            }else{
                x += dx * -1;
            }
            
            if(dx > 0){
                setImage("enemy_Sprites/goblin/walkGobR.gif");
            }else{
                setImage("enemy_Sprites/goblin/walkGobL.gif");
            }
        }
    }