Corona Simulator cannot open anything but main.lua files.

Hello,

I’m going through the tutorials and I’m on chapter 4. 

I have created the menu.lua file. However, when I go to the simulator and click on ‘open’, I can not click on anything but the main.lua file. I tried changing the name of the menu.lua to main.lua to see if that would work, and it did. The only problem is that the screen on the simulator comes up black. 

As you can see in the attached image, I have created a new folder called ‘sceneGroup’ inside of my project and have placed a copy of the background.png and title.png. 

Please advise. 

This is how Corona is set to work. It opens main.lua. As you complete the chapter, there should be changes to main.lua that has main.lua open menu.lua automatically. You will find a line of code that reads something like:

composer.gotoScene(  “menu” )

(it might have additional parameters, I don’t have the tutorial in front of me). When the simulator executes main.lua, it comes to that line of code and it will load and run your menu.lua for you.

Rob

This is how Corona is set to work. It opens main.lua. As you complete the chapter, there should be changes to main.lua that has main.lua open menu.lua automatically. You will find a line of code that reads something like:

composer.gotoScene(  “menu” )

(it might have additional parameters, I don’t have the tutorial in front of me). When the simulator executes main.lua, it comes to that line of code and it will load and run your menu.lua for you.

Rob