So basically I have a problem using Composer in the Corona SDK. I have a level, and when the lose condition is met, it runs a showOverlay command which pops up a Game Over overlay. I create all the text objects and buttons for the overlay in the scene:create() function and that works fine.
Here is the problem, I placed a print statement in the scene:show() function, inside my code block for
if phase == "will" then end
The documentation claims scene:show is only called twice, once for the "will" phase and once for the "did" phase. Yet my print statement is being printed to the console SEVERAL times, like 15-20 times. In fact, I have noticed this before in other cases where it seems like these event callback functions are being fired more times than they are supposed to.
Is there something I am missing that you have to do or add to these callback functions to make them run the appropriate amount of times?