@erasmo.marciano, this may be asking you to learn too much too fast, but you either need to learn how to use Director (there is a forum for it, its a Screen manager for Corona) or Storyboard, the official Corona screen manager.
Most games follow a similar pattern:
main.lua – does some initialization and loads menu.lua
menu.lua – provide buttons for settings, help, credits and play game. Depending on the button, you will load settings.lua, help.lua, gamecredits.lua or game.lua (or level1.lua, how ever your game is actually structured… lets call it game.lua for now)
game.lua – play your game. If you detect the game over setting, you load your game over screen, call it gameover.lua. If you have a retry situation, then load the retry.lua module. gameover.lua probably should have a button that takes you to menu.lua. retry.lua would have a button that takes you to game.lua.
Director ad Storyboard provides you very simple, typically one line API calls to load in these other lua modules and dispose of the screen you were just on.
In either case, you have a display group (group = display.newGroup()) that you insert all of your display objects into and when you change scenes, the scene manager of your choice removes the display group for you cleaning up all of those objects. Your clean up is left to timers and Runtime event listeners you may have fired up, stopping physics, etc. [import]uid: 19626 topic_id: 21909 reply_id: 87099[/import]