I created lots of physics bodies using box2d and tiledmap for a runner type game.
My Actor is named as body1
My coins are namedd dashingN (N = count)
My obstacles are named as demonX (X = level number)
My problem is once I try to finish the level or say gameover, I need to destroy all the bodies so that I can create new world for new level.
But I could not destroy the objects as always I get Body is alredy destroyed in few parts of code always whenever I try to destroy.
Can anybody help me solve this
Is there any easy way to do this instead of box2d??