mkelly,
One thing I noticed you need to do is wrap the “physics.removeBody(body)” inside an in-line function call. The reason; most callbacks will pass only an event object back to the function. The event object, in your case, is the timer object and not ‘body’ so you may get undesirable results. I always try to be safe and use in-line function calls which also gives the greatest flexibility. The semicolon is optional. (I’ve been a C programer forever.)
timer.performWithDelay(1000,function() physics.removeBody(body); end)
Jeff
[import]uid: 14119 topic_id: 18290 reply_id: 86853[/import]
THANKS!!!