x


how to make a main menu to view credits or start game

Is there a way to make a menu come up where you can select to view credits, intro, or play the game. I would like this to come up when the game is launched. I am not expecting a main menu script, i am looking at how to approach this, and get started.

I am using the free version of unity and am new to it. i went through the fps tutorial and now am doing my own game for fun. Is it possible to do this, and if so where is a good place to start.

more ▼

asked Feb 22 '11 at 02:52 PM

Daniel Waslenko gravatar image

Daniel Waslenko
2 2 2 2

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

yes it is possible... you could use multiple scenes for this and for each scene make sure in your project setting they are in there, this is the code to make a button load a scene...

if(GUI.Button(new Rect(10, 50, 75, 25), "Play Game")) {
            Application.LoadLevel(1);
        }

This will load your first scene... You can instead of have your scene be in numbers you can replace the Application part with this

Application.LoadLevel("Your Specific Scene");

Hope this takes you far sorry if i didnt help

more ▼

answered Feb 22 '11 at 03:20 PM

Nynex71 gravatar image

Nynex71
136 22 24 27

(comments are locked)
10|3000 characters needed characters left

http://www.unifycommunity.com/wiki/index.php?title=PauseMenu this is a great, free to use pause menu script. I use it myself, although I modified it quite a lot to suit my needs of course.

more ▼

answered Feb 22 '11 at 03:50 PM

Joshua gravatar image

Joshua
6.4k 19 25 70

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x386
x48

asked: Feb 22 '11 at 02:52 PM

Seen: 2812 times

Last Updated: Feb 22 '11 at 02:52 PM