level selection

update i fixed nearly all of my issues using composer.removeHidden() the only one left is that my balloons are not being removed on click my function isnt being called for some reason

Bare with me lol, everything is working now, but when i click to reload the scene, the scene reloads once fine, then if i click to reload it again, it reload but doesn’t remove the timer from the previous one and it still continues and we end up with two timers, when the first timer is up the balloons become unpoppable because the timer is up, even thought the timer for the current game is still running. 

Hi @duracakn10,

You still need to handle timers, transitions, and some other things yourself (this was true of Storyboard too). Primarily, Composer handles the visual elements of a scene, but you’ll need to manage some variables manually.

Take care,

Brent

WHat i did was create an extra file which called composer.removeHidden(true) and composer.gotoscene(composer.getSceneName(“pevious”) in the did phase of show to fix  the reload issue, but is there a way to do reload without having to refer to an external file? i couldnt find anything about it anywhere.

Hi @duracakn10,

I’m not sure what you mean by using an extra file to call the remove. You should be able to just reload the scene from within itself. Is there some reason why that doesn’t work for you?

Brent

I use another lua file i created which i call and go to that file to refresh the page there then return to the level. i tried to due it in the page itself, but found nothing on it online and everything i tried caused errors.

Hi @duracakn10,

So, you are opening an overlay scene or something? And from that overlay, you want to refresh the underlying (main) scene?

Yes, if possible. I call a pause.lua file from a button in the level01 folder which activates an overlay and one of the buttons is to refresh the scene below, but the only way I’ve found that works in doing so is calling a reset.lua file in the restart button. I was wondering if there is a way to do so without calling the reset.lua file and just restarting the level without error, all the ways I’ve tried multiplie the balloon objects or cause the timer to have errors

Hi @duracakn10,

I suggest that you study the Composer guide, specifically the point on using overlay scenes. From an overlay scene, you can access the parent scene (the underlying scene) and perform various actions on it.

http://docs.coronalabs.com/guide/system/composer/index.html#overlays