public void jump2() {

        if (up && Game.p.getY2() > Game.p.yInit2 - 25) {
            Game.p.setdY2(-5);
            Game.p.setJump2(true);
        }
        if (Game.p.getY2() <= Game.p.yInit2 - 25 && up2 && Game.p.getY2() > Game.p.yInit2 - 50) {
            Game.p.setdY2(-4);
            Game.p.setJump2(true);
         }
        if (Game.p.getY2() <= Game.p.yInit2 - 50 && up2 && Game.p.getY2() > Game.p.yInit2 - 100) {
            Game.p.setdY2(-3);
            Game.p.setJump2(true);
        }
        if (Game.p.getY2() <= Game.p.yInit2 - 100) {
            Game.p.setdY2(1);
            Game.p.setJump2(true);
            up2 = false;
        }
        if (!up2 && Game.p.getY2() <= 50) {
            Game.p.setdY2(3);
        }
        if (!up2 && Game.p.getY2() <= Game.p.yInit2) {
            Game.p.setJump2(false);
            up2 = true;
        }

        if (isunderFloor2()) {
            Game.p.setJump2(false);
        }



    }