Waiting for Menu Button selection

Sorry that this is such a basic question regarding selecting a menu button

I want to display a menu screen, consisting of a background image (done), a play button image (done) and a credits button image (done). I have got 'addEventListeners' on each button.

I've put these into a menu_screen.lua file, which I call from menu.lua

I want to stay on the menu screen until a button is selected. How do I make it 'wait' until a selection is made?

At the moment, it calls the menu screen but then just returns to main?

How do I make it wait until I've selected a button?

don't worry - just got my "return"s all mixed up. Now sorted :-)

views:1579 update:2011/10/19 8:59:29
corona forums © 2003-2011