Should I use groups and/or storyboard?

I wanted to learn the use of database interaction with Corona SDK and I’ve been able to make some progress on a business learning project. At this point, I’ve been able to generate a home stage that contains a heading graphic and 4 icons. The icons represent 4 different paths through the app: 1) search/add to inventory db, 2) create/display purchase list, 3) search calendar and 4) search/add to finish products db. I have the listeners setup and now I’m wondering how to transition to one of the four above screens.

Would the use of groups be the best way to change the screen if one of the four icons are touched, hiding the main home stage and creating a new group that represents the new screen I want to go to? I’m guessing storyboard would not be the best choice to move between each of these 4 functions, correct?

I’m pretty sure I can move forward if I can get the concepts of groups vs. scenes straight in my head.

Thanks for your help! [import]uid: 118856 topic_id: 20980 reply_id: 320980[/import]

You can use groups in that way but why not use storyboard to brake up your application into manageable files. By useing storyboard you can develop a scene for each of your four buttons. This will help keep your logic for each of these sections easier to manage. If you build the group way you will need to build that logic in individual modules to help manage your file complexity. Hope this helps. You could also use the director.lua for scene creation but I find storyboard much better and easer to use. [import]uid: 80890 topic_id: 20980 reply_id: 82873[/import]

I would second that - it does seem to help to break up the code into “scenes” rather than simply using a bunch of groups in main.lua.

Either are good options but most people choose to use Storyboard or Director and I know personally I like how it lets me keep my project neat and ordered.

Just my 2 cents.

Peach :slight_smile: [import]uid: 52491 topic_id: 20980 reply_id: 82891[/import]

Thanks to both of you! I’ll dig into the Storyboard approach. [import]uid: 118856 topic_id: 20980 reply_id: 82949[/import]