title: Libgdx create sequence action programmatically
body: <p>In my libGDX application I have an actor which needs to create actions programmatically.</p>
  
  <p>At the minute I am adding moveBy actions with incrementing delays in order to get the desired effect but this is very inefficient. Something like below;</p>
  
  <pre><code>actor.addAction(sequence(delay(i * DELAY), moveBy(50, 50));
  </code></pre>
  
  <p>If possible I would like to programmatically create one single sequence action and add moveBy actions to it as needed. Then I could just invoke a single action without having to continually add actions which is very unresourceful.</p>
  
  <p>I have checked the documentation and could not find anything specific to my particular need.</p>
  
  <p>I was thinking something along the lines of (pseudo code);</p>
  
  <pre><code>addPath(Vector2 path) {
  
      paths.add(path);
  }
  
  invokePathAction() {
  
      Action sequence = sequence();
      for all paths
          sequence.add(moveBy(path.x, path.y, TIME));
  
      addAction(sequence);
  }
  </code></pre>
  
  <p>Is something like this possible with libGDX?</p>