WEBVTT

00:00.080 --> 00:00.530
Hello guys.

00:00.530 --> 00:01.430
Welcome to the video.

00:01.430 --> 00:05.870
In this one I want to show you another polish effect I would like to do.

00:05.870 --> 00:11.120
And this is more of an example of what the Polish itself like.

00:11.120 --> 00:16.220
What we're going to do in this video is pretty simple and we did it before, but it's just another way

00:16.220 --> 00:18.560
of using it so you know how it could be done.

00:18.560 --> 00:21.890
And maybe this will open your imagination if you struggling with that.

00:21.890 --> 00:28.130
So let's go here and let's make a I mean take a prefab of the enemies of the rhino.

00:28.130 --> 00:31.400
So I'm going to place Rhino over here then.

00:32.430 --> 00:33.810
Let's go to prefab.

00:34.020 --> 00:36.090
Let's take, um.

00:37.140 --> 00:38.130
Thus the fix.

00:39.740 --> 00:44.480
I'm going to place it at the nose of the rhino and also on the rhino itself.

00:44.480 --> 00:45.680
Let me add.

00:47.580 --> 00:48.030
Um.

00:48.810 --> 00:49.830
Impulse.

00:51.480 --> 00:53.100
In impulse.

00:53.100 --> 00:54.000
Source.

00:54.640 --> 00:55.390
Like that.

00:56.500 --> 00:57.220
Okay.

00:57.220 --> 00:59.650
So we're going to do bump.

01:00.070 --> 01:05.500
I'm not sure if we need to change velocity or we need to because we want to have the facing direction.

01:05.500 --> 01:07.030
But other than that.

01:08.420 --> 01:08.810
Yeah.

01:08.810 --> 01:10.220
We're going to change velocity.

01:10.310 --> 01:12.170
Other than that, we're going to keep it as it is.

01:12.200 --> 01:14.330
Let's go to enemy right now.

01:15.870 --> 01:17.340
I'm going to make a header.

01:18.000 --> 01:18.510
Um.

01:20.050 --> 01:26.020
I'll just do effects and we want to have reference to private particle system.

01:27.500 --> 01:32.360
Does the fix and we want to do reference to impulse.

01:34.000 --> 01:35.080
Source.

01:37.990 --> 01:43.750
Impulse source and we want to have serialized field private vector tool.

01:45.080 --> 01:48.380
Impulse power like that.

01:49.250 --> 01:50.600
Let me do close all but this.

01:50.600 --> 01:54.140
And I just want to double check this on the camera manager we used.

01:54.950 --> 01:56.330
Yeah, basically the same.

01:56.330 --> 01:59.150
So I'll just take this from here.

01:59.150 --> 01:59.930
Copy it.

01:59.930 --> 02:04.430
Also, we could just call the method of a screen shake, by the way.

02:04.850 --> 02:08.600
Uh, but let's say you want to set up different shake effect for the rhino.

02:08.600 --> 02:10.970
Maybe you want it to be of a different power.

02:12.230 --> 02:16.700
So somewhere above I'm going to make a method.

02:16.700 --> 02:18.380
It will impact.

02:18.650 --> 02:19.850
It should be void.

02:20.360 --> 02:21.230
Void.

02:21.380 --> 02:23.840
And let's place those lines of code.

02:25.190 --> 02:30.800
Instead of shake direction and shake velocity, I'm going to use, uh, impulse power.

02:33.160 --> 02:35.650
Dot x multiplied by.

02:37.160 --> 02:40.490
Uh, facing direction and impulse power.

02:42.130 --> 02:42.940
Dot y.

02:43.270 --> 02:47.350
Also, I think we can hide these cinemachine impulse.

02:47.350 --> 02:48.430
We don't need it.

02:48.730 --> 02:51.250
And then we're going to do impulse source.

02:53.050 --> 02:57.370
Uh equals to get component of cinemachine impulse source in the start.

02:58.450 --> 02:59.110
Okay.

02:59.110 --> 03:03.520
Now let's go here and also do does the fix dot play.

03:04.820 --> 03:05.570
Nice.

03:05.570 --> 03:09.470
Now we can go to the place where we hit in the wall.

03:09.470 --> 03:10.610
Wall hit.

03:10.640 --> 03:12.650
Let's go to definition of this.

03:12.800 --> 03:14.960
And over here we're going to do.

03:17.670 --> 03:20.190
It will impact like that.

03:20.610 --> 03:24.150
And this is the example of a game polish.

03:24.150 --> 03:30.660
We just did small things from features we had before and now Rhino will um.

03:32.140 --> 03:33.490
Lady dust effect.

03:33.490 --> 03:36.760
It will shake the camera a little bit and it's going to look.

03:37.630 --> 03:40.360
Better, it will improve the game feel overall.

03:41.360 --> 03:42.770
Let's call the play mode.

03:45.290 --> 03:46.190
We need to.

03:47.210 --> 03:49.010
Oh, there is an error, I can see.

03:49.010 --> 03:49.850
What is that?

03:54.510 --> 04:01.710
Once that instantiate skin manager, why can't you instantiate Skin Manager?

04:05.950 --> 04:07.720
The object you want to instantiate is null.

04:07.720 --> 04:08.560
Okay.

04:08.920 --> 04:09.250
Um.

04:10.510 --> 04:11.140
Once more.

04:11.140 --> 04:12.280
I've seen it here.

04:13.710 --> 04:20.880
The object you want to instantiate is null means we instantiating nothing, and probably over here it

04:20.880 --> 04:21.570
is empty.

04:21.570 --> 04:22.410
Okay.

04:22.980 --> 04:26.250
Hit it and let's fix it before we test the rhino.

04:26.640 --> 04:30.600
Let's go to asset scene level one.

04:30.600 --> 04:31.620
Save it.

04:32.310 --> 04:36.420
Here we have working game manager and we're just going to apply overrides.

04:36.450 --> 04:39.090
Now we're going to go back to level three.

04:39.510 --> 04:41.010
And it is fine.

04:41.010 --> 04:42.900
Now we can go to play mode again.

04:44.540 --> 04:45.200
Okay.

04:45.200 --> 04:46.550
No errors.

04:46.640 --> 04:48.410
Let me try to.

04:50.000 --> 04:50.960
I grow this rhino.

04:51.170 --> 04:52.910
He's going to turn.

04:53.390 --> 04:55.640
And then if I go here.

04:58.400 --> 05:01.370
Oh, that was too much.

05:02.300 --> 05:03.890
Way too much.

05:04.510 --> 05:06.760
So strong why it was so strong.

05:07.480 --> 05:09.010
Oh, okay.

05:09.010 --> 05:09.850
My bad.

05:09.850 --> 05:12.010
We did the wrong scripting.

05:13.150 --> 05:15.820
I have a variable on the Renault.

05:17.900 --> 05:21.680
Impulse power and impact power.

05:22.340 --> 05:27.560
So let's change this to camera impulse.

05:27.740 --> 05:28.370
And.

05:29.190 --> 05:30.120
Direction.

05:30.120 --> 05:34.260
So the name is different and we cannot confuse it like I just did.

05:36.260 --> 05:37.250
Where is the method?

05:37.640 --> 05:39.620
Over here we're going to use.

05:41.280 --> 05:43.500
Uh, camera impulse direction.

05:44.950 --> 05:46.240
Camera impulse direction.

05:46.240 --> 05:47.170
I'm sorry for that.

05:47.170 --> 05:48.310
Let's save this.

05:48.310 --> 05:49.300
Let's go back.

05:51.530 --> 05:52.880
And try again.

05:53.330 --> 05:58.340
And also I've seen that this area over here was visible for the camera.

05:58.340 --> 06:02.930
So maybe I'll just take some piece of ground and I'll increase it like that.

06:04.870 --> 06:07.000
Just so it's not empty there.

06:07.570 --> 06:08.710
Just in case.

06:11.520 --> 06:12.270
Let's go.

06:13.040 --> 06:14.180
Um, here as well.

06:18.090 --> 06:21.090
And I like the game now, you know it feels a bit better.

06:21.090 --> 06:26.400
Also, if we play the animated background on this level and there is sounds and the camera is moving

06:26.400 --> 06:32.460
a little bit like you see now and Rhino is running, everything is so cool and alive, I love it.

06:33.140 --> 06:33.980
Hey, boy.

06:34.570 --> 06:36.250
And he's like, boom!

06:36.250 --> 06:37.630
He did not shake the camera.

06:37.630 --> 06:38.140
Why?

06:38.140 --> 06:39.220
He did not shake the camera.

06:39.220 --> 06:45.730
I know why, because I changed the name of the variable and I did not assign new values over here.

06:45.730 --> 06:50.080
Let's do 0.70 5.75 or maybe 0.6.

06:51.610 --> 06:52.450
Point six.

06:53.750 --> 06:55.190
Let me see this again.

07:01.510 --> 07:02.380
Nice.

07:02.380 --> 07:02.950
Very nice.

07:02.980 --> 07:04.990
This makes it much better.

07:04.990 --> 07:06.220
Really, I love it.

07:06.220 --> 07:08.380
This makes it much more alive.

07:09.190 --> 07:09.970
Hey, boy.

07:13.810 --> 07:16.150
You so good.

07:16.150 --> 07:16.960
Yes.

07:16.960 --> 07:17.470
Okay.

07:17.470 --> 07:19.660
So that's the kind of example of a polish.

07:19.660 --> 07:21.190
You see how better it is now.

07:21.190 --> 07:26.200
And I'm going to show you a couple of more examples of different places where we could improve the game.

07:26.200 --> 07:30.700
But overall, you would have to think yourself where the game could be better and do some changes to

07:30.700 --> 07:31.390
it if you want to.

07:31.390 --> 07:32.710
But if you don't do, it's fine.

07:32.710 --> 07:34.240
Game is pretty as it is.

07:34.450 --> 07:41.920
Uh, let's do point six here and let's take the Rhino and apply override so it has dust effect and other

07:41.920 --> 07:42.490
things.

07:42.490 --> 07:43.060
All right.

07:43.060 --> 07:44.590
Thank you so much for paying attention.

07:44.590 --> 07:46.090
Let's go to the next video.
