title: How to stop animations when a sprite's movement stops in Phaser 3
body: <p>Posting this to share how I tackled this problem. I had searched everywhere and couldn't seem to find a working solution. </p>
  
  <p>The problem (my version) - I had a sprite that was going to be my player in my game. I had both a running left and a running right animation. These animations are set to loop, so the player will appear as if they are running when their velocity is increased. <strong>I wanted the player's animation to stop once they had stopped moving</strong> </p>