Hello Team,
I have one level1.lua class in which i have implement reload or goto “Home” scene functionality. On preCollision from bottom i have shown a Overlay where i have two buttons 1. Play again and 2. “Menu(Home)”. In “enterScene” of reload.lua i have called my level1.lua scene which i have to reload.
I have properly remove all listneres and objects in preCollision of level1.lua and then showing overlay for relaod. But corona simulator getting crashed with error of segmentation fault.
Also, i have checked application on windows OS, its working fine there.
Please check and let me know what should i do.
if event.target.id == "reloadBtn" then storyboard.hideOverlay("GameOver\_Overlay"); --storyboard.purgeAll(); storyboard.gotoScene("reload"); elseif(event.target.id == "homeBtn")then local current\_scene\_name = storyboard.getCurrentSceneName(); -- storyboard.purgeScene(current\_scene\_name); -- storyboard.removeAll(); -- physics.stop() local options = { effect = "fade", time = 50, isModal = false, } storyboard.hideOverlay("GameOver\_Overlay",options) storyboard.purgeScene("level1") storyboard.gotoScene( "menu", "fade", 0 ) end