title: Moving Texture in LibGdx with increasing speed
body: <p>I make my texture move like decreasing its X axis. But the problem is when I moved it with a increasing speed it is not add properly. My sample code is as followed.</p>
  
  <pre><code>picx = 0;
  newpicx = 1024;
  if(speed&lt;20) speed+=.05f;
  
  picx -=speed;
  newpicx -= speed;
  
  if ((picx + 1024 - speed-4) &lt;0) {
      picx = 1024;
  }
  
  if ((newpicx + 1024 - speed-4) &lt;0) {
      newpicx = 1024;     
  }
  </code></pre>