Best way to manage extremely short-lived physics object? (e.g. explosion)

Hi everybody,

Hoping I can find some advice… I’m currently running a very quick animation (about .2s) of an explosion after a projectile strikes an enemy. I’d like the radius of that explosion to ‘kill’ other enemies during that time.

I don’t have a great strategy. It seems like I can’t add and then remove a physics body around the transition.to animation. There must be a simpler way.

Does anyone have any ideas? I’d really appreciate it.

Thanks!

Nick [import]uid: 7472 topic_id: 7207 reply_id: 307207[/import]

have a look here:
http://mobile.tutsplus.com/tutorials/corona/corona-sdk_physics-engine_explosions/

note, i posted a slight fix in the comments at the bottom [import]uid: 6645 topic_id: 7207 reply_id: 25344[/import]

Great tut, just what I was looking for. Thanks! [import]uid: 7472 topic_id: 7207 reply_id: 25372[/import]