public void jump(boolean forceJump) {
        if (onGround || forceJump) {
            onGround = false;
            setVelocityY(JUMP_SPEED);
            if(anim == left)
                anim = animJumpLeft;
            else if (anim == right)
                anim =animJumpRight;
            anim.update(JUMP_TIME);
        }
    }