Help! How to design Main Menu.

I’m in the process of putting together a memory match game. I recently wrote code for gameplay from another tutorial but it doesn’t mention how to code a main menu with an option for instructions.

How is this done in corona?

[import]uid: 128294 topic_id: 22091 reply_id: 322091[/import]

I use storyboard to manage my scenes. Also, you can code a main menu just like a game. Add images with listeners that call functions. [import]uid: 103624 topic_id: 22091 reply_id: 87769[/import]

Storyboard or Director are both good options; I have a tutorial for Director on Techority which may help.

Peach :slight_smile: [import]uid: 52491 topic_id: 22091 reply_id: 87787[/import]

@lKinx

How does that work though? [import]uid: 128294 topic_id: 22091 reply_id: 90910[/import]

I tried StoryBoard but as my App was only 3 scenes, I decided it was over kill.

I just created 3 groups, 1 for each scene. Add all the objects into each group, so 1 group for the main menu, 1 group for the instructions and 1 group for the main game. Hide 2 and show 1 (the menu). Then as the user clicks options on the menu you show/hide the appropriate groups.

This will only work for a small game/app as everything is loaded.

Dave [import]uid: 117617 topic_id: 22091 reply_id: 90930[/import]

@ thedavebaxter
StoryBoard would that work better for my match game app? I wanted to create three stages(with shorter time limit higher the difficulty). [import]uid: 128294 topic_id: 22091 reply_id: 90931[/import]

There is no “better” as such. The best one to use is all a matter of personal preference.

Some use storyboard, some use my scenemanager, some use director and some roll there own systems.

The right one, is the one that you feel most confortable with and can achieve what is needed. [import]uid: 84637 topic_id: 22091 reply_id: 90963[/import]

@Danny
Vice versa, what would I have to type in order to make it work with my game? Given I’m shooting for 2-3 stages. Development is at a halt right now. [import]uid: 128294 topic_id: 22091 reply_id: 91025[/import]

Have a good read of all the stuff on -

http://developer.anscamobile.com/content/storyboard

Also take a look at the gitHub that is linked to on that page. That is what I used to get mine working, it is really easy to implement.

Dave [import]uid: 117617 topic_id: 22091 reply_id: 91070[/import]

peach pellen why am i stuck with like 3 instances of story board scenes and how do i switch between 3 scenes consecutively [import]uid: 139898 topic_id: 22091 reply_id: 106156[/import]

did you do this in director or can you do the same thing in storyboard [import]uid: 139898 topic_id: 22091 reply_id: 106185[/import]

Hey kharylambie,

Try checking out the Storyboard sample in CoronaSDK > SampleCode > Interface > Storyboard

There’s also a blog post on it which may be useful.

Peach [import]uid: 52491 topic_id: 22091 reply_id: 106210[/import]

peach pellen how do you left justify or right justify the text actually i need to right justify however [import]uid: 139898 topic_id: 22091 reply_id: 106496[/import]

See object.align; http://developer.anscamobile.com/resources/apis [import]uid: 52491 topic_id: 22091 reply_id: 106616[/import]