title: How to make a specific physics body in a moving animation in corona sdk?
body: <p>I have a moving animation called "instance1" which has 8 frames in my corona sdk game. Unfortunately the dynamic physics body I try to add picks up the transparent space in the rest of the animation and when instance1 jumps on to a platform it just goes off of the screen because of the transparent space. Is there a way to set a physics body to the current frame's opaque colour only?
  Here is the code:</p>
  
  <pre><code>local sheet1 = graphics.newImageSheet( "runningcat.png", { width=496, height=206.5, numFrames=8 } )
  local instance1 = display.newSprite( sheet1, { name="cat", start=1, count=8, time=1000 } )
  instance1.x = display.contentWidth / 4 + 10
  instance1.y = baseline - 100
  instance1.xScale = .3
  instance1.yScale = .3
  instance1:play()
  physics.addBody( instance1, { density=3.0, friction=0.5, bounce=0.3 } )
  </code></pre>
  
  <p>Any help appreciated.</p>
  
  <p>Mitra0000</p>