x


main screen game

hey im looking for a way to lets say have my game and before i can play i would like to have something like an interface like most games like call of duty Black ops where you can click on campain multiplayer options somthing like that can some one tell me how this works tnx Greats Wesley S

more ▼

asked Jan 09 '11 at 02:43 PM

Wesley S gravatar image

Wesley S
65 37 44 48

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

2 answers: sort voted first

You could make a main menu level that is run before your main level(s) is/are run. You can make use of GUI functions to make buttons, texts, lists and so on. Each button can then call Application.LoadLevel, to load a specific level. You need a way to query something for available games for your multiplayer tab. It could be a server hosting game details, or maybe you use some other means of polling what games exists.

more ▼

answered Jan 09 '11 at 02:56 PM

Statement gravatar image

Statement ♦♦
20.2k 35 71 176

okey mate thanks i have great respect for you guys

Jan 09 '11 at 04:19 PM Wesley S
(comments are locked)
10|3000 characters needed characters left

You should look into the GUI class.

http://unity3d.com/support/documentation/ScriptReference/GUI.html

What you want to do is a scene that you f.ex. call Menu. Make a new cube, remove everything in the inspector except the Transform. You should probably rename it to GeneralScripts or something. Then you attach a JavaScript to it and play around with the GUI class.

Buttons http://unity3d.com/support/documentation/ScriptReference/GUI.Button.html Textfields http://unity3d.com/support/documentation/ScriptReference/GUI.TextField.html

Etc.

more ▼

answered Jan 09 '11 at 02:59 PM

SeruK gravatar image

SeruK
58 3 3 10

okey thanks i understand what you mean but im gonne trai it my understanding of java programming is just getting a bit better so wich me luck

thanks annyway

Jan 09 '11 at 04:18 PM Wesley S

Yeah, good luck!

Jan 09 '11 at 04:20 PM SeruK
(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:

x824
x502
x37

asked: Jan 09 '11 at 02:43 PM

Seen: 1032 times

Last Updated: Jan 09 '11 at 02:43 PM