Page 1 of 1

how do you add a main menu

PostPosted: Sun Jul 13, 2008 7:22 pm
by pdude1
Does anyone know to add a main menu to the game and then make the game start from the main menu?

Re: how do you add a main menu

PostPosted: Sun Jul 13, 2008 7:51 pm
by Murd-Machine[_]
Main menu is just the same as any level in a game. It consists of many objects, such as background, buttons and so on.
So, compose it (make sure it fits the view), and drag the view to cover it all (this will make your game start in the main menu). Then put in keyboard or mouse button event (depends on a kind of menu) to change coordinates of view to coordinates of you level [start], other menus [options\help], [quit]...
It's rather simple task.

Re: how do you add a main menu

PostPosted: Sun Jul 13, 2008 9:39 pm
by pdude1
what? that didn't help me at all

Re: how do you add a main menu

PostPosted: Sun Jul 13, 2008 11:45 pm
by segwego12
He needs help on making one, not organizing, spelling and grammar!

Re: how do you add a main menu

PostPosted: Mon Jul 14, 2008 9:28 pm
by Thanx
Easy rider people, easy rider!
Probably you need an actor, that has an animation for the background of the menu.
Usually there's an actor that shows the title of the game - either a text actor, or another animation
For each button you'll need an actor. I prefer making an animation for the buttons, but if you'd make them with a text actor, then don't forget to add a Filled Region, that handles the click events, so you don't have to click right on the text.
For the quit button, in the onclick event, if you don't know this, then use the Exitgame function in the script editor.
For the start game button, you'll basically want the view actor to move to where the game starts: set its x and y coordinates...
Those are the most basic things, of course you may have game options. In that case, you might clone the bckground, create a separate screen for that, add apropriate actors to do different things...
Help section might also be done similarly... add/clone background, add actors mainly text, describing the game, you'll need a back button that leeds back to the main page... These bmove the view, etc...
Once you've done several, you'll realize why Murd-Machine gave such a light description: every menu is quite different, cause each game has different options, feels, works, etc. It's hard to describe a menu in a way to make sure you understand what you need to...

Re: how do you add a main menu

PostPosted: Thu Aug 14, 2008 6:15 pm
by Totter
Hmm...so I'm guessing that's similar to how you'd get to a battle screen in an RPG? Except you'd place a tile on a map with an event on it that shifts the view to a battle screen and creates actors for that specific battle...maybe...??

Re: how do you add a main menu

PostPosted: Thu Aug 14, 2008 8:18 pm
by Lexcondran
All you have to do is make your menu screens
then the words and their filled region actors to ocmpany them
make it to where if you mouseclick on the actor=filled region that it moves the view to the player
it works in reverse to pull up menus and stuff using the mouse