In andAngine I need to destroy a Scene in andangine and to recreate it in order to restart the game variables and listeners and gamelogic. i use this code:
scene.detachChildren();
scene.clearEntityModifiers();
scene.clearTouchAreas();
scene.clearUpdateHandlers();
System.gc();
thisengine.setScene(menuscene);
and then I recreate the scene
scene = new Scene();
scene.dosomestuff
thisengine.setScene(scene);
Something seems to go wrong when I recreate the third time the scene. Sprites doesn't display..are distorted or something doesn't display at all. Can anyone explain to me if I correctly initialize and destroy the scene ?