title: LIBGDX Input isTouched()
body: <p>Can anyone give me any tips why my Player isn't moving.  It started moving till the player.dat was saved then it just Kind of nudges and returns to original position</p>
  
  <pre><code>public class Player implements Serializable, InputProcessor{
  
  private static final long serialVersionUID = 1L;
  Vector2 position, touchPosition;
  String textureLoc;
  
  public Player(Vector2 position, String textureLoc){
      this.position = position;
      }
  
  public void update(){
  
      position = new Vector2(0,0);
      Vector2 touchPosition = new Vector2(0,0);
  
  
      if (Gdx.input.isTouched()){
          touchPosition.set(Gdx.input.getX(), Gdx.input.getY());
  
      }
      if(touchPosition.x &gt; position.x){
          position.x += 2f;}
  
       if (touchPosition.x &lt; position.x){
              position.x -= 2f;}
  
      if(touchPosition.y &gt; position.y){
          position.y += 2f;}
  
       if (touchPosition.y &lt; position.y){
              position.y -= 2f; 
      }
  
  }
  </code></pre>
  
  <p>This is under Player class. Please help. I have been stumped for 2 days!</p>