title: How do I get a complete animation loop in one keystroke?
body: <p>What do I need to fix so that a single keystroke plays one full animation loop?</p>
  <p>Creating animation object:</p>
  <pre><code>jojoStandSummonTextureAtlasRight = new TextureAtlas(Gdx.files.internal(&quot;jojo/stand_summon/right/jojo_stand_summon.atlas&quot;));
  jojoStandSummonAnimationRight = new Animation&lt;TextureRegion&gt;(1 / 3f, jojoStandSummonTextureAtlasRight.getRegions());
  </code></pre>
  <p>Rendering animations:</p>
  <pre><code>if(Gdx.input.isKeyJustPressed(E) &amp;&amp; lastKeyInput == RIGHT){
              sb.draw(jojo.jojoStandSummonAnimationRight.getKeyFrame(elapsedTime, false), jojo.getPosition().x, jojo.getPosition().y);
              lastKeyInput = RIGHT;
          }
  </code></pre>