Using body:destroy() without the game crashing

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
war_man333
Prole
Posts: 6
Joined: Tue May 27, 2014 5:20 pm
Location: Aarhus, Denmark

Re: Using body:destroy() without the game crashing

Post by war_man333 »

adnzzzzZ wrote:If you're using Mogamett, do self.dead = true and the physics object will be destroyed next frame. You can't change a physics object from the callback function.

If you have more questions like those use the comments section on the related page on the Mogamett site, since I get an e-mail notification right away and can answer the question pretty fast.
Thanks! I'll ask on the site if it's Mogamett-related next time :)
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 0 guests