title: Updated collided sprite only
body: <p>I have a very simple game that I'm playing around with, built off the touch/physics example. Basically what happens, is, when you touch the screen it creates a shape with a body and bounces around with box2d. Now, what I would like to do is when that specific sprite collides with anything at all, it will change the current frame to "1" for a moment then go back to the original. </p>
  
  <p>I have it somewhat working, but whenever any sprite collides with anything it only updates the most recently created sprite. This is my collision detecting:</p>
  
  <pre><code>private ContactListener createContactListener()
      {
          ContactListener contactListener = new ContactListener()
          {
  
              @Override
              public void beginContact(Contact contact) {
                  face.animate(new long[] { 50, 10}, new int[] {1, 0}, 0);; 
  
  
              }
  
              @Override
              public void endContact(Contact contact) {
  
              }
  
              @Override
              public void preSolve(Contact contact, Manifold oldManifold) {
  
              }
  
              @Override
              public void postSolve(Contact contact, ContactImpulse impulse) {
  
              }
  
          };
          return contactListener;
      }
  </code></pre>
  
  <p>As I said, I think I am close I just can't seem to figure it out. Thank you!</p>