WEBVTT

00:00.040 --> 00:02.120
We will make the parallax effect.

00:02.120 --> 00:05.720
So in order to make that, we need to drag our backgrounds.

00:05.720 --> 00:09.240
To do so let's head over to our project tab, then assets.

00:09.240 --> 00:15.720
And then I will move over to my sprites folder, then environment folder and then backgrounds folder.

00:15.760 --> 00:21.920
Of course I will give a link in the description or of sorry not in description.

00:21.920 --> 00:26.480
You can find it in the resources so you can check that out.

00:26.480 --> 00:31.280
So we can select one by one and drag it over to the scene view or into this hierarchy.

00:31.560 --> 00:33.600
So I'm going to select this sky one.

00:33.600 --> 00:35.800
So let's drag it into this in view.

00:35.840 --> 00:40.240
As you can notice it seems too much small and within.

00:40.320 --> 00:47.200
We need to make it bigger to to make it bigger, we will select all of these individual sprites of this

00:47.200 --> 00:51.000
background, then go over to Inspector and Sprite mode to choose.

00:52.080 --> 00:54.360
Choose a single instead of multiple.

00:54.400 --> 00:59.120
Because we have individual sprite, we don't have multiples like that.

00:59.640 --> 01:01.670
We basically we need to split.

01:01.710 --> 01:02.790
We don't need to split.

01:02.790 --> 01:08.950
So that's why in this moment, we just choose a sprite mode to single and pixel per unit.

01:08.950 --> 01:11.310
We're going to make it something around 16.

01:11.310 --> 01:17.630
So we do know that if we make this less, our sprite is going to be large in size, and to get rid of

01:17.630 --> 01:22.630
blurry, we need to choose filter mode to point of filter in the bottom, and then click on this apply

01:22.630 --> 01:24.190
button in the bottom right.

01:24.590 --> 01:27.910
And as soon as we're going to click on it, you will notice that.

01:28.230 --> 01:36.590
So we not able to see for somehow so what we're going to do I'm going to select that and let's delete.

01:36.750 --> 01:40.670
We're going to select the sprite one more time and let's drag it over to the scene view.

01:40.670 --> 01:41.950
Or in this hierarchy.

01:41.990 --> 01:48.870
As you can notice, as soon as we drag it we can see our background, but it still seems a little bit

01:48.910 --> 01:49.430
small.

01:49.430 --> 01:51.790
So we can just make it a little bit bigger.

01:52.030 --> 01:59.710
And basically to make our pixel per unit less, let's basically means, uh, b that's the sprite just

01:59.710 --> 02:01.810
going to be large in size.

02:01.810 --> 02:05.770
So we will select all of these sprite one more time by holding down shift.

02:05.810 --> 02:08.690
Then go over to Inspector and Pixel per unit.

02:08.690 --> 02:14.090
Let's make it something around eight and then scroll down and let's click on this apply button in the

02:14.090 --> 02:15.010
bottom right.

02:15.170 --> 02:20.410
And now we can see that seems pretty much cool, but we need to fit it perfectly.

02:20.410 --> 02:25.290
But before I do I'm going to select my sky or this background in the hierarchy.

02:25.850 --> 02:29.730
Then go over to Inspector, right click on this transform and then reset.

02:29.730 --> 02:32.490
So it's going to reset the all of the position.

02:32.890 --> 02:35.930
And we can just drag it a little bit down.

02:36.130 --> 02:38.650
But I don't want to do that.

02:38.650 --> 02:41.010
I just want to make it a little bit smaller.

02:41.010 --> 02:44.210
Basically this background background or this sky.

02:44.610 --> 02:47.370
So let's select one more time all of this sprite.

02:47.410 --> 02:52.130
Let's go over to Inspector and let's make this pixel per unit something around ten.

02:52.250 --> 02:55.650
Instead of putting eight we're going to do it ten.

02:55.650 --> 02:58.050
Let's click on this apply button one more time.

02:58.050 --> 03:00.090
And now that seems pretty much fine.

03:00.250 --> 03:03.400
And I'm going to select my background basically this sky.

03:03.400 --> 03:08.080
And let's select the move tool in the hierarchy sorry move tool in the scene view.

03:08.080 --> 03:12.840
And we're going to move it somewhere over here to just fill it the area.

03:12.880 --> 03:17.480
You can simply say, and we need to drag all of this background one by one.

03:17.680 --> 03:20.120
So I'm going to select the clouds.

03:20.160 --> 03:23.440
Let's drag it over to this in view or into this hierarchy.

03:23.800 --> 03:25.920
So let's drag it into the scene view.

03:26.320 --> 03:29.520
As you can notice this seems pretty much cool.

03:29.840 --> 03:35.680
But I guess if we make our sprites a little bit small, it's gonna be fine.

03:35.680 --> 03:39.440
So we can just go ahead with 16 pixel per unit.

03:39.440 --> 03:40.840
So let's select one more time.

03:40.840 --> 03:41.560
All of this.

03:41.760 --> 03:43.080
Let's go over to Inspector.

03:43.080 --> 03:45.680
Let's make pixel per unit 16.

03:45.680 --> 03:48.000
And let's click on this apply button.

03:48.000 --> 03:49.680
And now this seems pretty much fine.

03:49.680 --> 03:51.760
And we can just arrange that.

03:51.760 --> 03:54.760
Before I arrange we need to place this layer.

03:54.800 --> 04:03.910
Basically we don't want this sky background uh far from our player game object or from this main camera.

04:03.910 --> 04:08.230
Or you can simply say, we want this layer to be all the way behind.

04:08.230 --> 04:10.710
So we need to assign some sorting layer.

04:10.710 --> 04:14.150
So I'm going to choose my sky sky in the hierarchy.

04:14.190 --> 04:18.750
Then go over to Inspector Sprite Renderer then additional settings sorting layer.

04:18.750 --> 04:22.190
So let's click there and let's click on this add sorting layer.

04:22.190 --> 04:25.590
So let's create some sorting layer for our backgrounds.

04:25.590 --> 04:26.950
So this will be sky.

04:26.990 --> 04:30.310
So let's click on this plus icon in Inspector Sorting Layer.

04:30.510 --> 04:32.750
And let's call this one background.

04:32.750 --> 04:34.910
Or we can simply call this one sky.

04:34.950 --> 04:36.990
So let's call it sky instead.

04:37.110 --> 04:39.590
And let's create one for our clouds.

04:39.590 --> 04:47.510
So let's create four clouds and one for we're going to create four rocks I guess uh, to check that

04:47.510 --> 04:51.950
out I'm going to move over to my sprites folder environment, then backgrounds.

04:52.230 --> 04:53.990
And let's check the name.

04:53.990 --> 04:57.470
So we have crops and grass and rocks.

04:57.470 --> 05:00.650
So let's create two other uh sorting layer.

05:00.650 --> 05:02.970
So this is just going to be grass.

05:03.170 --> 05:05.610
And then we're going to add one more sorting layer.

05:05.610 --> 05:11.050
And we're going to name this one to something like rocks uh rocks or stones.

05:11.210 --> 05:16.050
And we want this sky all the way behind uh all the way behind.

05:16.090 --> 05:18.730
That's why we're going to drag it in the top.

05:18.850 --> 05:24.450
Then I want the clouds, then I want the rocks, and then I want the grass.

05:24.450 --> 05:30.930
So this grass layer will be all the way up, and this sky layer will be all the way behind.

05:30.930 --> 05:35.530
So we need to assign with this sky with our sky sorting layer.

05:35.530 --> 05:40.090
So we will choose our sky game object in the hierarchy or sky background.

05:40.130 --> 05:42.730
Then go over to Inspector Sprite Renderer.

05:42.770 --> 05:45.850
As sorting layer we're gonna choose assign with Sky.

05:46.130 --> 05:48.250
And now we're going to choose our clouds.

05:48.250 --> 05:51.170
And we're gonna assign with sorting layer clouds.

05:51.170 --> 05:55.130
So let's click on the sorting layer and you need to choose the sorting layer.

05:55.370 --> 05:58.570
And now we're gonna drag our this grass.

05:58.570 --> 06:02.880
So let's drag it into this in view or into this hierarchy like that.

06:03.680 --> 06:08.440
And we're gonna assign this grass as a grass sorting layer.

06:08.600 --> 06:10.280
And now let's choose the rock.

06:10.320 --> 06:12.280
Let's drag it into this in view.

06:12.280 --> 06:15.080
And let's assign with our rocks.

06:15.560 --> 06:16.120
Sorry.

06:16.400 --> 06:20.560
Uh, we want the ground, uh, top of this grass, I guess.

06:20.680 --> 06:22.480
So we're gonna choose our grass.

06:22.680 --> 06:24.760
Sorry, this is not grass.

06:24.880 --> 06:27.760
Basically this mountain, I really apologize.

06:28.040 --> 06:30.320
So we can just rename this sorting layer.

06:30.320 --> 06:30.800
To do so.

06:30.800 --> 06:31.840
Let's click on it.

06:31.840 --> 06:34.200
Let's click on Add Sorting Layer.

06:34.200 --> 06:36.440
And you can just name the sorting layer.

06:36.560 --> 06:40.760
So we're gonna call it something like Rouse Mountain like that.

06:41.160 --> 06:48.680
Uh like that I really apologize if I miss spelling misspelling that I really apologize for it.

06:48.840 --> 06:49.800
Mountains.

06:49.800 --> 06:52.840
And we're gonna assign with Grass Mountain.

06:53.520 --> 06:54.840
And now this is fine.

06:55.000 --> 06:57.920
And for this Rocks Mountain, we're gonna choose rocks.

06:57.920 --> 06:59.600
And now that's basically cool.

06:59.600 --> 07:04.110
cold, and we will select all of these sprites by holding down shift in the hierarchy.

07:04.310 --> 07:05.830
Then go over to Inspector.

07:05.830 --> 07:08.550
Right click on this transform and then reset.

07:08.550 --> 07:10.430
So it's going to reset the position.

07:10.430 --> 07:13.870
And we need to duplicate this background to duplicate.

07:13.870 --> 07:18.110
But before we do we're going to create an empty parent game object.

07:18.110 --> 07:24.230
And we will drag all of this background into that game object in order to make our hierarchy a little

07:24.270 --> 07:25.030
bit clean.

07:25.190 --> 07:26.950
So that's why we're going to do that.

07:26.950 --> 07:29.070
To do it, let's go over to hierarchy.

07:29.070 --> 07:30.950
Right click or hit this plus icon.

07:30.950 --> 07:33.390
Then create an empty game object sorry.

07:33.670 --> 07:35.510
And create an empty game object.

07:35.510 --> 07:39.110
And we're going to call this game object to something like backgrounds.

07:39.110 --> 07:42.950
So let's call it backgrounds backgrounds.

07:42.950 --> 07:45.190
Then go over to Inspector Transform.

07:45.190 --> 07:47.630
Let's right click there and then reset.

07:47.630 --> 07:49.710
And we will select all of this background.

07:49.710 --> 07:56.190
Basically this sky, clouds, grass mountain rocks mountain and then drag it over top of this background

07:56.270 --> 07:57.190
game object.

07:57.190 --> 08:01.970
And now if we select our backgrounds, we can move it anywhere we want.

08:02.010 --> 08:03.370
As you can notice.

08:03.370 --> 08:05.810
So I'm going to reset the position to zero zero.

08:05.810 --> 08:09.450
So let's set back to zero in the x, zero in the y.

08:09.610 --> 08:11.130
And now we need to duplicate.

08:11.130 --> 08:14.210
But before we duplicate we need to do some settings.

08:14.250 --> 08:19.810
Basically I want to drag this grass mountain a little bit up as well as the rocks.

08:20.090 --> 08:21.610
So let's click over here.

08:21.610 --> 08:27.930
But before you do make sure you just select your backgrounds game object and then make that one a prefab.

08:27.930 --> 08:29.530
So you're gonna have the copy.

08:29.530 --> 08:34.890
And you don't need to work from scratch or you don't need to start over.

08:34.890 --> 08:38.050
So make sure you just make your backgrounds a prefab.

08:38.330 --> 08:43.650
So let's select our backgrounds GameObject in the hierarchy, and let's drag it over to this prefabs

08:43.650 --> 08:47.610
folder in order to turn it into a prefab, basically a copy.

08:47.890 --> 08:51.410
So that's why we created an empty parent GameObject first.

08:51.410 --> 08:58.170
And then we just made this sky, clouds, grass, mountains, rock, mountains style of that game object.

08:58.530 --> 09:04.040
And I'm going to select my grass mountain and let's select the move tool in the scene view.

09:04.040 --> 09:08.320
And let's move it up in the y axis, something like this much.

09:08.320 --> 09:10.720
And we're going to select our rock mountains.

09:10.760 --> 09:13.680
Let's drag it in the y little bit up.

09:13.680 --> 09:18.040
Then we're gonna choose our clouds and let's move it up.

09:18.040 --> 09:21.080
And then sky background something like this.

09:21.120 --> 09:25.840
Much as you can notice, and this already seems pretty much cool.

09:26.000 --> 09:32.920
And now what we have to do, we need to duplicate this, uh, background in order to fill our area.

09:33.160 --> 09:35.280
So we're going to select all of this background.

09:35.280 --> 09:37.120
Basically don't select the parent.

09:37.320 --> 09:39.320
So don't select this background.

09:39.360 --> 09:44.960
Instead select the child's basically sky clouds ground grass mountain rocks mountain.

09:44.960 --> 09:48.080
And then press down Ctrl D in order to duplicate.

09:48.080 --> 09:51.960
And you can move it over to the left side or into the right side.

09:51.960 --> 09:54.240
So I'm going to move it over to my left side.

09:54.240 --> 09:59.550
Something around I guess -19 or -20 seems perfect number.

09:59.750 --> 10:05.190
And if we scroll our mouse to zoom in, we can notice it seems pretty much fine.

10:05.550 --> 10:07.190
So now what you have to do.

10:07.230 --> 10:12.990
You need to make sure you select the duplicate one, and then drag it over to top of the first one.

10:13.030 --> 10:15.870
Basically, make the duplicate child of the first one.

10:15.870 --> 10:19.990
So I'm going to select my sky one and let's drag it over to the sky.

10:20.230 --> 10:26.870
And we're going to do the same thing with this glass clouds across mountains and rock mountains.

10:27.110 --> 10:28.390
So let's select these clouds.

10:28.430 --> 10:33.310
Let's drag it over to clouds, then Grass Mountain and then rock mountains.

10:33.310 --> 10:35.150
And now this seems pretty much cool.

10:35.630 --> 10:41.910
And we also need to do in the you can simply say in the right side as well as in the left side.

10:41.910 --> 10:43.270
We already done it.

10:43.270 --> 10:46.230
And we're going to make it a little bit something like that.

10:46.230 --> 10:49.910
But before we do, make sure you select your parent game object.

10:49.910 --> 10:53.470
Then go over to Inspector Overrides and then apply all.

10:53.670 --> 10:59.860
So the changes you made inside this background game object, it's gonna save into this background scheme

10:59.900 --> 11:01.540
object prefab as well.

11:01.580 --> 11:04.300
Now let's deal with the right side.

11:04.540 --> 11:07.740
So what we're going to do now we're going to select our child.

11:07.780 --> 11:09.860
That which we duplicate it.

11:09.900 --> 11:14.500
We're going to select all of them by holding down control.

11:14.500 --> 11:22.620
So let's select this sky one then clouds one then grass mountains one and then this rock mountains one.

11:22.620 --> 11:25.700
And we can simply press down Ctrl D to duplicate.

11:25.700 --> 11:30.380
And now we're going to move over to the right side which will be plus 20.

11:30.620 --> 11:34.220
So the left one was something around -20.

11:34.260 --> 11:37.780
So in the positive side it should be 20 plus 20.

11:37.820 --> 11:39.180
So let's move it 20.

11:39.220 --> 11:42.340
And now as you can notice it fits perfectly.

11:42.500 --> 11:45.820
And you can select one more time and then you can just duplicate.

11:45.820 --> 11:47.420
So I'm going to duplicate one more time.

11:47.420 --> 11:49.340
So I'm going to select the duplicate one.

11:49.660 --> 11:52.460
So let's select duplicate one not the parent.

11:52.820 --> 11:54.260
So select duplicate one.

11:54.260 --> 11:57.820
Let's press down Ctrl D in order to duplicate.

11:57.820 --> 12:01.400
And let's move it over to in the X, something like 40.

12:01.440 --> 12:04.160
We need to move that since this is 20.

12:04.200 --> 12:07.200
So this position over here is gonna be 40.

12:07.360 --> 12:11.960
So what we're going to do now, we're going to put 40 and we can sorry not 50.

12:12.000 --> 12:13.400
We're gonna do 40.

12:13.440 --> 12:16.640
And we can duplicate this one more time by Ctrl D.

12:17.000 --> 12:21.600
And now sorry we're going to choose the duplicate one.

12:22.400 --> 12:24.960
So let's choose the duplicate one.

12:26.440 --> 12:30.080
And let's press down one more time Ctrl D to duplicate.

12:30.080 --> 12:32.920
And we're going to move it over something over here.

12:32.920 --> 12:36.480
So it should be 40 plus 20 which is 60.

12:36.480 --> 12:39.240
So we need to put 60 right over here.

12:39.520 --> 12:42.600
Or you can simply select your move tool from this in view.

12:42.600 --> 12:46.000
And you can just simply drag it in the right side.

12:46.040 --> 12:51.560
But instead of doing that you can just approach in this way and it's going to be fine.

12:51.560 --> 12:58.360
So I hope you get the idea that how you can do it, and we need to make the parallax effect as well.

12:58.750 --> 13:02.430
So before we do that, let's select our parent game object.

13:02.590 --> 13:07.870
So I'm going to click on this in order to collapse and make sure you select your parent game object

13:07.870 --> 13:09.950
which is in my case backgrounds.

13:09.950 --> 13:14.110
And make sure you just turn it into a prefab so you will have the copy.

13:14.110 --> 13:19.550
So I'm going to select my background game objects, then go over to Inspector Overrides and then apply

13:19.550 --> 13:20.070
all.

13:20.070 --> 13:23.710
So that's why I just created an empty parent game object first.

13:23.710 --> 13:30.470
And then I just place all of those backgrounds into this backgrounds game object to make it a prefab,

13:30.470 --> 13:32.350
and it's gonna save a lot of time.

13:32.350 --> 13:33.190
So that's why.

13:33.310 --> 13:38.110
And now we are ready to we basically ready to make our parallax effect.

13:38.350 --> 13:42.950
And in order to make the parallax effect, firstly we need to choose our main camera.

13:43.230 --> 13:44.670
Make sure you choose that.

13:44.670 --> 13:49.270
Then go over to Inspector, then camera component and over here projection.

13:49.310 --> 13:52.230
As you can notice it says orthographic.

13:52.230 --> 13:54.310
So we need to choose perspective.

13:54.310 --> 13:59.900
And as soon as we choose perspective now it's going to make the parallax effect.

13:59.900 --> 14:05.260
But what we basically want, we want to move this green mountain a little bit faster.

14:05.260 --> 14:12.660
If our player moving is left and right, and we want to move this rock mountains a little bit slower

14:12.660 --> 14:18.500
as compared to the Grass Mountain, which is just gonna be closer to our player game object.

14:18.540 --> 14:24.660
If any background is far away from this player game object or from this main camera, then we want that

14:24.660 --> 14:28.420
background to move slowly as compared to the close one.

14:28.420 --> 14:32.140
So we want the sky to move a little bit slowly.

14:32.140 --> 14:39.300
So what we basically need to do, we need to drag our sky sky in the z axis little bit further away.

14:39.460 --> 14:46.100
So how you can do that in this scene view top bar you can see uh, 2D right over here in the top bar

14:46.140 --> 14:48.060
in scene view you can see 2D.

14:48.180 --> 14:54.540
So just click on it and you can hold down alt on your keyboard, and you can just move your mouse in

14:54.540 --> 14:56.700
order to take a look around this.

14:56.700 --> 15:02.280
As you can notice that all of the backgrounds in the same position in the z axis.

15:02.280 --> 15:08.600
So what we need to do when we're gonna drag our scribe background far, far, far from this player game

15:08.640 --> 15:13.920
object, or from this camera, from this camera.

15:13.920 --> 15:17.360
So it's gonna move slowly as compared to the close one.

15:17.800 --> 15:23.080
For to do that, we're gonna move over to hierarchy, then backgrounds, and then we're gonna choose

15:23.080 --> 15:31.200
our Sky one, and let's move it far away from our from our main camera, this sky background.

15:31.200 --> 15:32.160
So let's move it.

15:32.160 --> 15:34.280
Something like this much, I guess.

15:34.640 --> 15:41.400
And let's move it something around six, and then we're gonna choose our clouds, and we're gonna go

15:41.400 --> 15:41.960
for clouds.

15:41.960 --> 15:50.240
So we can simply put a 4.5, because we want this clouds cloud to be moved a little bit faster as compared

15:50.240 --> 15:51.160
to the sky.

15:51.200 --> 15:56.120
That's why we just drag it our sky far from our main camera.

15:56.120 --> 15:59.470
Or you can simply say from this player game object.

15:59.670 --> 16:01.990
And now we're going to do with Grass Mountain.

16:01.990 --> 16:06.470
Let's move this in the z axis as something around three I guess.

16:06.630 --> 16:12.310
And then and we're going to move this up a little bit in the y axis our rock mountains.

16:12.310 --> 16:14.110
Sorry, sorry.

16:14.150 --> 16:17.510
It's basically the green mountains I really apologize.

16:17.710 --> 16:21.070
Instead we have to do it with rock mountains.

16:21.430 --> 16:24.870
So for green mountains let's set back to zero.

16:25.270 --> 16:27.590
And we're going to choose our rock mountains.

16:27.590 --> 16:30.030
And we're going to move in the Z axis three.

16:30.110 --> 16:32.550
So make sure you select your rock mountains.

16:32.550 --> 16:34.670
Then go over to Inspector Transform.

16:34.670 --> 16:37.990
Then Z axis you can put something around three.

16:38.670 --> 16:42.870
And now I want my grass mountain.

16:42.870 --> 16:49.910
So this grass mountain just gonna move a little bit faster as compared to the rock, mountains, clouds

16:49.910 --> 16:50.750
and sky.

16:50.790 --> 16:51.190
Why.

16:51.390 --> 16:53.070
Because it's gonna be closer.

16:53.070 --> 16:58.900
So that's why it's gonna move a little bit faster as compared to the, uh, as compared to the which

16:58.900 --> 17:04.460
one is far, far, far away from our main camera or from the player game object.

17:04.460 --> 17:07.300
So I hope you get the idea that how you can do it.

17:07.300 --> 17:12.460
So we're going to choose our grass mountain and we're going to move it in the Z, something like one.

17:12.460 --> 17:14.420
Or we can simply do with two.

17:14.460 --> 17:17.820
And let's move it a little bit up in the y axis.

17:18.180 --> 17:23.500
And we're going to do the same thing with uh, you can simply say this rock mountains.

17:23.500 --> 17:26.260
So let's move it up in the y axis.

17:26.260 --> 17:30.220
And then I'm going to choose my clouds and let's move it up in the Y.

17:30.220 --> 17:34.220
And then this sky background, something like this.

17:34.220 --> 17:41.060
And now if we just go ahead and then click on this play button, you will notice the parallax effect.

17:41.060 --> 17:43.020
Just gonna happen right away.

17:43.140 --> 17:50.940
And this grass mountain is just gonna move faster as compared to which one is far, far away from our

17:50.940 --> 17:56.420
player game object or from our main camera because we have chosen the perspective.

17:56.820 --> 18:04.240
And now if we go ahead and you can notice that as you can notice our backgrounds basically doing the

18:04.240 --> 18:05.360
parallax effect.

18:05.400 --> 18:10.240
But the problem is that it seems like it's too much slow like that.

18:10.320 --> 18:16.280
So what we can simply do, we can just drag a little bit further away from this player game object.

18:16.680 --> 18:17.840
So it's going to be fine.

18:17.840 --> 18:19.520
So let's get out of play mode.

18:19.560 --> 18:21.840
So I'm going to choose my sky background.

18:22.160 --> 18:24.440
So let's choose our sky background.

18:24.640 --> 18:29.280
And let's go over to Inspector Transform then position inset.

18:29.280 --> 18:33.600
We're going to do something around ten I guess ten seems pretty much fine.

18:33.640 --> 18:35.680
Let's move it up a little bit.

18:35.880 --> 18:40.600
And then we're going to choose our clouds and let's move it something around seven.

18:41.120 --> 18:43.560
And let's move up a little bit.

18:43.600 --> 18:48.400
Then we're going to choose our grass mountain and let's move it something like four.

18:48.920 --> 18:49.720
Uh sorry.

18:49.760 --> 18:53.960
This grass mountain, uh, firstly we're gonna choose our rock mountain.

18:53.960 --> 18:55.600
We're gonna do it for.

18:55.640 --> 18:59.910
And we will choose our grass mountain and we're going to do it something like two.

19:00.550 --> 19:03.190
Let's choose our rock mountains one more time.

19:03.190 --> 19:09.870
I guess you can hold down alt on your keyboard, and you can just adjust as well by selecting by selecting

19:09.870 --> 19:13.670
this move tool in this in view in order to make the parallax effect.

19:13.830 --> 19:16.070
So I'm going to choose my grass mountain.

19:16.110 --> 19:19.790
Let's move it a little bit down something like this much.

19:20.030 --> 19:22.390
And then I'm going to choose my rock mountains.

19:22.430 --> 19:24.270
Let's move it a little bit down.

19:24.750 --> 19:27.190
Then clouds a little bit down.

19:27.190 --> 19:30.830
And I want my sky a little bit up.

19:30.830 --> 19:32.110
Something like this much.

19:32.110 --> 19:37.950
Now this seems pretty much cool and once you are satisfied, make sure you just move over to your parent

19:37.950 --> 19:38.710
game object.

19:39.110 --> 19:44.550
Then go over to Inspector Inspector, then over X and then apply all.

19:44.550 --> 19:50.630
So the changes you made, it's going to be saved into this backgrounds GameObject prefab as well.

19:50.630 --> 19:57.390
And now if we go ahead and then click on this play button in the top we will notice the parallax effect.

19:57.390 --> 20:00.300
a parallax effect, parallax effect.

20:00.300 --> 20:01.980
By now, it's going to be fine.

20:02.260 --> 20:08.180
And once you are satisfied, then you can simply press down Ctrl S on your keyboard in order to save

20:08.180 --> 20:09.220
your project.

20:09.380 --> 20:11.660
And now if I just move left and right.

20:11.660 --> 20:17.180
As you can notice the parallax effect, by now it seems a lot more a lot more cool.

20:17.380 --> 20:21.020
And you can just play around with those values and you're gonna get that.

20:21.020 --> 20:23.780
And we can also notice our camera shake.

20:23.820 --> 20:29.460
As you can see, if I attack my enemy two game object, we can see this.

20:29.460 --> 20:32.260
So this seems pretty much cool as you can notice.

20:32.700 --> 20:34.580
So we made the parallax effect.

20:34.580 --> 20:40.780
And in the by I guess we need to do something a little bit so we can simply get out of play mode.

20:40.780 --> 20:44.420
And you can just play around with the y axis as well.

20:44.420 --> 20:48.340
And let's suppose you just want to go back into the plane.

20:48.340 --> 20:49.740
Something in the scene view.

20:49.780 --> 20:51.500
You just want to go back.

20:51.660 --> 20:56.580
Then you have to click on this story in the top bar in the scene view you can notice.

20:56.580 --> 21:04.840
So just click on it in order to go back in, uh, plain, uh, plain plain scene, you can simply say

21:04.880 --> 21:05.320
2D.

21:05.640 --> 21:11.880
I hope you get the idea that how you can do it and make sure you press down Ctrl s on your keyboard

21:11.880 --> 21:14.000
in order to save your project.

21:14.000 --> 21:18.400
So firstly, you need to choose your main camera, then go over to Inspector Camera.

21:18.400 --> 21:21.720
And then you need to choose this projection to perspective.

21:21.720 --> 21:25.160
So it's going to make the uh make the parallax effect.

21:25.160 --> 21:31.760
And you need to adjust all of these backgrounds, backgrounds in the z axis in order to make the parallax

21:31.760 --> 21:32.320
effect.

21:32.480 --> 21:37.760
And if you drag any background closer to the player game object, then it's going to move a little bit

21:37.760 --> 21:38.280
faster.

21:38.280 --> 21:41.640
Which one is far away from this player game object?

21:41.640 --> 21:44.760
Or you can simply say from this main camera.

21:44.760 --> 21:46.520
So you need to adjust that.

21:46.520 --> 21:49.680
So I hope you get the idea that how you can do it.

21:49.880 --> 21:55.600
And I'm gonna press down one more time, Ctrl s on my keyboard in order to save my project.

21:55.600 --> 21:58.120
I hope you get the idea of this.
