@Rob, @Ingemar
I moved the ‘check phase’ inside of ‘create scene2’ where everything else about the scene is.
Also made the back button of scene2 to manage whether to simply go back to scene1 if the parameters didn’t change (working), or remove scene 1 and go to scene 1 (rebuild the scene) if some changes occurred (not working).
In this latter case the screen got frozen on scene 2, no error returned. I can hear a specific sound effect of entering scene1 and from this I infer that the parameters have been passed properly and scene1 got loaded, but scene2 is still hanging on the screen. Here’s the function I use to go back to scene1 (it’s triggered by pressing the back button)
--- we're in scene2 and just hit the back button: local function gotoPlay () --- "Play" would be scene1 if didSTchange == didSTchangeout --- a comparison to determine if changes have been made... composer.gotoScene ("Play", "zoomInOutFade", 150) else composer.removeScene ("Play") composer.gotoScene ("Play", "zoomInOutFade", 150) end end
Any idea regarding the frozen screen?