title: libGDX - make footsteps in a effective way
body: <p>In a 2D game, that is being developed with libGDX, what is the most effective way to make the footsteps of the player, for example -</p>
  
  <pre><code>if(player.isWalking) {
    Timer.schedule(new Task(){
      public void run(){
        play(single_footstep);
      }
    }, 0.5f);
  }
  </code></pre>
  
  <p>This code isn't effective at all.. actually it's not working, the sound comes in a bad way, and no matter how much you will play with the delay value its still not effective.</p>
  
  <p>BTW - I am using the Timer class of libgdx, which is very similiar to the util one.</p>
  
  <p>So maybe you have a better idea to implement? I am kinda new to libGDX, so maybe I am missing something.</p>
  
  <p>Thanks in advance :)</p>