x


How To Make A Pause Menu?

How would i go about making a pause menu for my 2D sidescrolling game. I want to be able to push the P key and it opens the pause menu where you can chose to restart or quit game back to the main menu. Which i also need is a main menu when you start the game.

more ▼

asked Jan 11 '11 at 04:09 PM

Brandon 8 gravatar image

Brandon 8
45 18 21 27

Limit your questions to one per post. The main menu can become another question. It becomes much easier answering posts if they are modular and separable.

Jan 11 '11 at 04:15 PM Statement ♦♦
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Main menu:
Create an extra scene and use Application.LoadLevel to switch to the next.

Pause menu:
Set the time scale to 0, enable a GUI and do not forget to disable the AudioListener.

(These are suggestions for basic functionality. You may want to search the forum and wiki for advanced tips and scripts.)

more ▼

answered Jan 11 '11 at 04:27 PM

efge gravatar image

efge
5.1k 5 14 40

(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:

x402
x268
x161
x37

asked: Jan 11 '11 at 04:09 PM

Seen: 2130 times

Last Updated: Jan 11 '11 at 04:09 PM