title: LibGDX: Vertical scrolling Texture
body: <p>Hi I am trying to make a texture vertically scrollable and am not able to get the correct behaviour. </p>
  
  <p>Here is my code: </p>
  
  <pre><code>    if (Gdx.input.isTouched()) {
          if (startingy == 0 ) {
              startingy = (Gdx.input.getY())
                      / (Gdx.graphics.getHeight() / MainGame.HEIGHT);
          }
          else if(getstart){
              startingy = startingy-scroll;
              getstart = false;
  
          }
          scroll = (Gdx.input.getY())
                  / (Gdx.graphics.getHeight() / MainGame.HEIGHT);
  
          if (startingy -scroll &lt; 0) {
              startingy = 0;
              scroll = 0;
          }
          if (startingy &gt; img.getHeight()) {
              startingy = img.getHeight();
          }
      } else {
          getstart = true;
      }
  </code></pre>
  
  <p>Any help would be much appreciated, thankyou! </p>