Hi i currently have created an app with transitioning scenes using storyboards…
scene 1 contains physics (moving objects) when I change scenes from scene 1 to scene 2 , i want the physics to stop in scene and not continue running in scene.
Does anyone know what I am supposed to do in order to stop the physics from running in scene 2?
Thank You
Do both scenes have physics or just scene 1? If only scene 1 has physics call physics.stop() on either exitScene or destroyScene in scene1. If BOTH scenes have physics I do not know of a way because Corona implementation of box2d does not support separate box2d worlds. However, another option is to not stop physics and simply remove bodies from all objects in scene 1 while adding physics bodies to objects in scene 2.
Do both scenes have physics or just scene 1? If only scene 1 has physics call physics.stop() on either exitScene or destroyScene in scene1. If BOTH scenes have physics I do not know of a way because Corona implementation of box2d does not support separate box2d worlds. However, another option is to not stop physics and simply remove bodies from all objects in scene 1 while adding physics bodies to objects in scene 2.