WEBVTT

00:00.040 --> 00:03.360
Let's replace this square with our player sprite.

00:03.360 --> 00:04.760
And I have it.

00:05.040 --> 00:09.320
Of course I will have in the resources the link as well as the assets.

00:09.320 --> 00:11.520
You can go and check that out.

00:11.640 --> 00:17.600
So I'm gonna move over to my project tab assets and then sprites folder and then player folder.

00:17.600 --> 00:21.160
As you can see I have a lot of sprites of player.

00:21.160 --> 00:23.920
So I'm going to select all of them by holding down shift.

00:23.960 --> 00:28.920
And let's select a single uh so we will select the idle one.

00:28.920 --> 00:30.440
So let's find it first.

00:31.080 --> 00:32.440
Uh two.

00:32.720 --> 00:35.040
This is working stocking.

00:35.160 --> 00:36.680
So let's find the idle.

00:40.040 --> 00:44.040
We need to find the ideal T.

00:46.960 --> 00:47.960
So small.

00:50.240 --> 00:53.040
Idle right over here, as you can see.

00:53.040 --> 00:54.680
So this is idle.

00:54.680 --> 00:56.440
So let's select one of them.

00:56.440 --> 00:57.480
So let's select that.

00:57.480 --> 00:58.720
Go over to Inspector.

00:58.720 --> 01:00.990
Click on open sprite editor.

01:01.190 --> 01:08.550
As you can see, we have the sprite and it seems blurry, so we need to choose a filter mode to point

01:08.710 --> 01:15.190
filter instead of blurry, and we will make this pixel per unit a less number, something around 16

01:15.230 --> 01:18.990
to make this sprite larger in size.

01:18.990 --> 01:22.270
So we need to make this pixel per unit less number.

01:22.430 --> 01:24.870
And we have more than one sprite.

01:24.870 --> 01:30.310
So that's why sprite mode we need to choose multiple in inspector and pixel per unit.

01:30.310 --> 01:31.790
We're gonna choose 16.

01:31.950 --> 01:33.830
And let's scroll down filter mode.

01:33.870 --> 01:40.590
We're gonna choose Point of filter since it's basically seems blurry if we scroll our mouse to zoom

01:40.590 --> 01:40.950
in.

01:41.150 --> 01:45.350
So to get rid of that, we need to choose this filter mode to point filter.

01:45.350 --> 01:49.030
And after doing all of these things, click on this apply button.

01:49.030 --> 01:53.070
And once we done, we can just move over to Sprite Editor tab.

01:53.070 --> 01:54.950
In the top left we can see slice.

01:54.950 --> 01:58.790
So let's click there and let's select automatic to create pixel count.

01:58.830 --> 02:02.380
And let's count how many columns and rows we have.

02:02.380 --> 02:04.740
So we can see four columns and one row.

02:04.740 --> 02:07.900
So we're going to put four columns and one row.

02:07.900 --> 02:12.820
And after doing that let's click on this slice and then click on this apply button.

02:12.820 --> 02:15.100
And I'm going to select my game view once again.

02:15.100 --> 02:17.980
And let's select our player game object in the hierarchy.

02:18.220 --> 02:20.500
And make sure you just select that sprite.

02:20.500 --> 02:23.420
So in our case we have done with this one.

02:23.700 --> 02:27.420
So we're going to click on this arrow to see the individual ones.

02:27.460 --> 02:30.620
And now I'm going to select my player GameObject in the hierarchy.

02:30.620 --> 02:33.060
And let's select the first sprite.

02:33.060 --> 02:35.780
And let's drag it over to this sprite renderer.

02:36.180 --> 02:38.660
Right over here we need to drag it sprite.

02:38.660 --> 02:40.620
As you can see it says square.

02:40.620 --> 02:43.420
So we're going to replace this with our player sprite.

02:43.420 --> 02:44.900
So we're going to select the first one.

02:44.900 --> 02:46.860
Let's drag it over to that slot.

02:47.020 --> 02:51.940
And as soon as we drag it as you can see by now we can see our player.

02:52.100 --> 02:55.620
But the problem is that it seems too much big.

02:55.620 --> 02:59.890
So we can make our pixel per unit as Uh, something around.

02:59.930 --> 03:01.970
I guess we have done with this one.

03:02.130 --> 03:02.770
Sorry.

03:02.770 --> 03:03.370
This one.

03:03.370 --> 03:12.650
Okay, so we can make our pixel per unit something like 30 or 32 instead of, uh, 16, and let's do

03:12.650 --> 03:14.770
it something around 20.

03:14.930 --> 03:16.690
And let's click on this apply.

03:16.690 --> 03:18.250
And now this seems perfect.

03:18.250 --> 03:22.730
I go, uh, so let's go with uh, 20 and this seems perfect.

03:22.730 --> 03:26.210
And once we are done make sure you adjust the collider.

03:26.210 --> 03:28.890
So I'm going to select my player game object in the hierarchy.

03:29.050 --> 03:31.850
And let's go over to this box Collider 2D.

03:31.850 --> 03:33.770
And let's click on this Edit Collider.

03:33.770 --> 03:40.850
Or you can simply click over here as well and edit the Collider as the size of your player game object.

03:40.850 --> 03:42.290
Something like this.

03:42.970 --> 03:47.010
And we're going to make this size and this seems perfect.

03:47.170 --> 03:53.530
And also we need to move our this ground checkpoint fit to fit of this player game object.

03:53.530 --> 03:56.970
So we're going to select our ground check and let's select the move tool.

03:56.970 --> 04:00.490
And let's move it in the feet of this player game object.

04:00.490 --> 04:04.130
So it's gonna check the over here instead of checking here.

04:04.450 --> 04:09.970
And once we done, we can just go over to overrides of this player and then apply all.

04:10.130 --> 04:11.290
Now it's fine.

04:11.290 --> 04:18.610
And if we just go ahead uh, go ahead and then click on this play button, it should work fine so we

04:18.610 --> 04:24.890
can make our player jump move and all of those things like moving left and right.

04:26.250 --> 04:29.530
And we're gonna do the same thing with all of these sprites.

04:29.690 --> 04:35.490
So let's but before we do, let's take a look so we can make jump as you can see.

04:35.730 --> 04:42.410
So we also need to flip this player to the left side once it's or moving towards to the left direction.

04:42.410 --> 04:45.490
So we need to flip our player to the left direction.

04:45.490 --> 04:51.330
But before we do, let's uh select all of this sprite and let's do the same thing as we have done with

04:51.330 --> 04:52.410
the idle one.

04:52.410 --> 04:58.080
So we will get out of play mode, and we will select all of these sprite by holding down shift.

04:58.440 --> 05:02.400
And we're not going to select this one, which is me.

05:02.680 --> 05:07.520
So I'm gonna hold down control and let's click on it in order to deselect.

05:07.640 --> 05:11.480
And now let's go over to Inspector uh pixel sprite mode.

05:11.520 --> 05:14.400
We're going to leave it to multiple and pixel per unit.

05:14.400 --> 05:19.000
We're gonna do 20 and filter mode to point no filter to get rid of blurry.

05:19.040 --> 05:22.200
And let's click on this apply button in the bottom right.

05:22.440 --> 05:26.600
And as soon as we click on apply it's gonna be fine.

05:26.600 --> 05:27.800
And now it's fine.

05:28.080 --> 05:31.960
And, uh, let's, uh, split individually.

05:31.960 --> 05:38.320
So we will select for now jumping, running uh, attacking, working like that.

05:38.320 --> 05:40.120
So we have the working here.

05:40.160 --> 05:43.560
Let's click on this open sprite editor after selecting it.

05:43.800 --> 05:50.480
And let's click on this slice in the top left uh left side in Sprite Editor tab.

05:50.480 --> 05:53.640
And let's select automatic to create pixel count.

05:53.640 --> 05:56.030
And let's count how many columns and rows rose.

05:56.030 --> 05:58.870
We have so three, six, seven.

05:58.870 --> 06:02.390
So we're going to put seven columns and one row.

06:02.430 --> 06:05.350
Let's click on this slice and then apply button.

06:05.350 --> 06:13.790
Basically do the same thing with all of these sprites but majorly majorly do with the uh, with uh we

06:13.790 --> 06:18.670
basically needs like attacking, running, uh, walking or jumping.

06:18.670 --> 06:20.670
So we need to do with those.

06:20.670 --> 06:28.030
So I hope that how you can do it and you will, uh, able to get this in assets, uh, basically in

06:28.030 --> 06:34.190
the resources, you can find these assets and you can use in your game to make your game.

06:34.390 --> 06:36.830
So, uh, so basically to make your game.

06:36.830 --> 06:39.470
So I hope you get the idea that how you can do it.

06:39.670 --> 06:47.310
And I'm gonna press down Ctrl s to save my, uh, project, uh, project, whatever I have done so far

06:47.310 --> 06:49.870
in unity editor, it will be saved.

06:49.870 --> 06:55.630
Or you can simply move over to top left file and then click on the save button in order to save your

06:55.630 --> 06:56.270
project.
