- Home /
Load, Save and Options Gui Help
I have created a main menu. So far I have made a C# script that peforms the following: Roll mouse over any button it will highlight grey. When you click "EXIT" it will close the App/Game.
But I DESPERATELY need help with the "New Game","Load Game" and "Options" button. I want it like the game Castle Story. so when you click New Game a GUI comes up beside it with 4 spaces where you can save your game. When you click Load Game it comes up with the GUI but to load a game. And Lastly the options button should have a GUI coming up to adjust the graphics and noise.
Here is a picture to help you ][1]
CubePhysics I doubt your going to get an answer since you haven't asked a question. If you don't know how to do the whole menu don't just ask for the whole menu to be done divide it into smaller blocks and if you dont know how to do that block then ask that question. Good luck.
I did ask my question read it again. I wanted to know how you create a new game and load game menu like in castle story
Answer by dsutherland · Nov 26, 2012 at 10:45 PM
Well I don't know about castle story but you could make it Load a scene where you can select save data. All you have to do for that is something similar to this:
if (GUI.Button(new Rect((Screen.width - buttonWidth - horizontalSpacing) / 2, (Screen.height - menuHeight - verticalSpacing) / 2 + 30, buttonWidth, buttonHeight), "Yes"))
{
Application.LoadLevel("MainMenu");
}
else if (GUI.Button(new Rect((Screen.width - buttonWidth + horizontalSpacing) / 2, (Screen.height - menuHeight + verticalSpacing) / 2 + 30, buttonWidth, buttonHeight), "No"))
{
menuActive = false;
}
These buttons can be in behind your graphics, you just have to figure out positioning. Application.LoadLevel("MainMenu"); -> this Loads a Scene in your project with the same name. Make sure the scene is included in the build of your project. There is also a Youtube video for 3D menus. http://www.youtube.com/watch?v=8Q5y7pHWdlo
Your answer
Follow this Question
Related Questions
in game menu for load, save, quit to main menu scene and volume. also a question on opening scenes 1 Answer
Missing 'Options' in my GUI Menu? 2 Answers
How do I destroy a GUI button when I click on it 1 Answer
Another GUI question. enable and disable 1 Answer
On button hover, Gui Box shows, on box hover, Gui Box shows 1 Answer