title: NEED some guides on moving actors on stage libgdx
body: <p>i am currently facing a problem where i try to move my actor by <code>touchdown</code> and i am confuse and did some error. I am trying to move my bucket to the left and right by dragging the actor. 
  This is my code 
      package com.tcyzzz.savethesemester;</p>
  
  <pre><code>import com.badlogic.gdx.ApplicationAdapter;
  import com.badlogic.gdx.Gdx;
  import com.badlogic.gdx.graphics.GL20;
  import com.badlogic.gdx.graphics.OrthographicCamera;
  import com.badlogic.gdx.graphics.Texture;
  import com.badlogic.gdx.graphics.g2d.Batch;
  
  import com.badlogic.gdx.math.Vector3;
  import com.badlogic.gdx.scenes.scene2d.Actor;
  import com.badlogic.gdx.scenes.scene2d.InputEvent;
  import com.badlogic.gdx.scenes.scene2d.InputListener;
  import com.badlogic.gdx.scenes.scene2d.Stage;
  
  import com.badlogic.gdx.scenes.scene2d.actions.MoveByAction;
  import com.badlogic.gdx.utils.viewport.ScreenViewport;
  </code></pre>
  
  <p>public class MyGdxGame extends ApplicationAdapter {</p>
  
  <pre><code>Stage stage;
  
  
  @Override
  public void create () {
      stage = new Stage(new ScreenViewport());//establish a stage for the game
      MyActor actor = new MyActor();
      stage.addActor(actor);
      stage.setKeyboardFocus(actor);
      actor.addListener(new InputListener(){
          @Override
          public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {
              MoveByAction mba = new MoveByAction();
              mba.setAmount(5,0);
              stage.addAction(mba);
              return true;
          }
      });
  
  
      Gdx.input.setInputProcessor(stage);//handle user input
  
  
  }
  
  @Override
  public void render () {
  
      Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
      stage.draw();// call all sprites in actors class
  
  }
  
  @Override
  public void dispose () {
      stage.dispose();//stage dispose
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p>and my actors class</p>
  
  <pre><code>package com.tcyzzz.savethesemester;
  
  import com.badlogic.gdx.Gdx;
  import com.badlogic.gdx.Input;
  import com.badlogic.gdx.graphics.OrthographicCamera;
  import com.badlogic.gdx.graphics.Texture;
  import com.badlogic.gdx.graphics.g2d.Batch;
  import com.badlogic.gdx.graphics.g2d.Sprite;
  
  import com.badlogic.gdx.scenes.scene2d.Actor;
  import com.badlogic.gdx.scenes.scene2d.InputEvent;
  import com.badlogic.gdx.scenes.scene2d.InputListener;
  import com.badlogic.gdx.scenes.scene2d.Touchable;
  import com.badlogic.gdx.scenes.scene2d.actions.MoveByAction;
  </code></pre>
  
  <p>class MyActor extends Actor {
      Sprite sprite = new Sprite(new Texture(Gdx.files.internal("bucket.png")));</p>
  
  <pre><code>public MyActor(){
      setBounds(sprite.getX(),sprite.getY(),sprite.getWidth(),sprite.getHeight());
      setTouchable(Touchable.enabled);
  
  }
  
  @Override
  public void draw(Batch batch, float parentAlpha) {
      sprite.draw(batch);
  
      setBounds(sprite.getX(),sprite.getY(),sprite.getWidth(),sprite.getHeight());
  
  }
  
  @Override
  public void act(float delta) {
      super.act(delta);
  }
  </code></pre>
  
  <p>}</p>
  
  <p>i need a clear instruction on how to move the bucket by dragging it using stage , actors .. thanks</p>