Question about physics

  1. Is it possible to scale a physic body with the sprite image?
  • my guess is that you cannot and that I would have to do it manually.
  1. Is it possible to change physic body shapes when a sprite set changes frames?
    Thanks. [import]uid: 9484 topic_id: 16766 reply_id: 316766[/import]

1)Manually~What you could do is multiply each individual number of your shape table by the scale of your sprite image before you use it in physics:addBody().

2)Hmm I know you can’t change a physics body on the fly without some great trickery like changing the current body to a sensor and adding another body on top/per frame and change the bodyTypes back. [import]uid: 54716 topic_id: 16766 reply_id: 63048[/import]