x


Could you please explain the pause on the FPS tutorial?

Hi,

I'd like to create a similar effect as the pause on the FPS tutorial, where the GUI disappears and is replaced by another, and the screen goes blurry. However, I can't seem to work out how this is done.

I'd like it so that when I pick up an object, the GUI disappears and the screen blurs, and there is a 2D texture on top of this explaining the object that has been collected. Basically this means pausing the game automatically and it will restart when the player presses space.

I don't really understand how the blur effect works, and I can't seem to find any script anywhere that plays when esc is pressed.

Thanks

more ▼

asked May 01 '10 at 03:05 PM

Pure Phase gravatar image

Pure Phase
224 21 24 31

Please mark this question as answered by ticking one of the replies below.

Jun 13 '10 at 06:44 AM Ricardo
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

Full-screen post-processing effects like Gaussian Blur are only available in Unity Pro. If you don't have Unity Pro, or the free trial of Unity Pro, you won't be able to use the full-screen effects like blur.

more ▼

answered May 01 '10 at 08:58 PM

qJake gravatar image

qJake
11.6k 43 78 161

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

You will however be able to do implement this basic mechanism with either version. You can freeze gameplay a number of ways. The simplest is probably with:

Time.timeScale = 0;

And then resume at the correct speed when spacebar is pressed. Additionally, you will want to enable a boolean or some such that causes a GUI texture to be drawn on the screen. GUI components can include dynamic text as well, so you may just be able to show a set image with dynamic text on top.

more ▼

answered May 15 '10 at 11:27 PM

Novodantis 1 gravatar image

Novodantis 1
1.7k 14 22 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:

x3672
x260
x101
x77

asked: May 01 '10 at 03:05 PM

Seen: 1598 times

Last Updated: Jun 13 '10 at 06:44 AM