title: libgdx - moving an object
body: <p>So, I'm farely new to programming this is my first game, and I have been working on it for a while, for one of my classes and I'm creating a pong game just changed it up a bit and I'm having trouble moving my paddle from the left to the center everytime I change the the percentage of the width of the screen to move it for some reason it elevates the paddle by all almost the same. Also everything is controlled by the width for some bizarre reason its almost like the field.height has no effect on moving it? I'm stuck right here and I'm so close to finishing it I'm trying to lower the paddle to the bottom center? any help would really be appreciated and hopefully this makes sense. </p>
  
  <p>here is the field </p>
  
  <pre><code>@Override
  public void create () { 
      field.set(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
      fieldLeft = field.x;
      fieldRight = field.x + field.width;
      fieldBottom = field.y;
      fieldTop = field.y + field.height;
  </code></pre>
  
  <p>and here is the paddle movement  </p>
  
  <pre><code>private void resetRectangle(){
      paddle1.move(field.x + (field.width * .5f, 0);
      paddle2.move(0,0);
  }
  </code></pre>
  
  <p>and the class</p>
  
  <pre><code>public class Paddle extends GameShare{
  
  private ShapeRenderer paddleRenderer;
  
  
  protected Paddle() {
      super(100, 32);
  }
  
  public void paddleCreate(){
      paddleRenderer = new ShapeRenderer();
  
  }
  
  public void paddleRender(float dt){
      paddleRenderer.begin(ShapeType.Filled);
      drawPaddle(dt);
      paddleRenderer.end();
  }
  
  private void drawPaddle(float dt) {
      paddleRenderer.rect(this.getX(), this.getX(), this.getWidth(), this.getHeight());
      paddleRenderer.rect(this.getX(), this.getX(), this.getWidth(), this.getHeight());
  
  }
  </code></pre>