Let's replace this square with our player sprite.
And I have it.
Of course I will have in the resources the link as well as the assets.
You can go and check that out.
So I'm gonna move over to my project tab assets and then sprites folder and then player folder.
As you can see I have a lot of sprites of player.
So I'm going to select all of them by holding down shift.
And let's select a single uh so we will select the idle one.
So let's find it first.
Uh two.
This is working stocking.
So let's find the idle.
We need to find the ideal T.
So small.
Idle right over here, as you can see.
So this is idle.
So let's select one of them.
So let's select that.
Go over to Inspector.
Click on open sprite editor.
As you can see, we have the sprite and it seems blurry, so we need to choose a filter mode to point
filter instead of blurry, and we will make this pixel per unit a less number, something around 16
to make this sprite larger in size.
So we need to make this pixel per unit less number.
And we have more than one sprite.
So that's why sprite mode we need to choose multiple in inspector and pixel per unit.
We're gonna choose 16.
And let's scroll down filter mode.
We're gonna choose Point of filter since it's basically seems blurry if we scroll our mouse to zoom
in.
So to get rid of that, we need to choose this filter mode to point filter.
And after doing all of these things, click on this apply button.
And once we done, we can just move over to Sprite Editor tab.
In the top left we can see slice.
So let's click there and let's select automatic to create pixel count.
And let's count how many columns and rows we have.
So we can see four columns and one row.
So we're going to put four columns and one row.
And after doing that let's click on this slice and then click on this apply button.
And I'm going to select my game view once again.
And let's select our player game object in the hierarchy.
And make sure you just select that sprite.
So in our case we have done with this one.
So we're going to click on this arrow to see the individual ones.
And now I'm going to select my player GameObject in the hierarchy.
And let's select the first sprite.
And let's drag it over to this sprite renderer.
Right over here we need to drag it sprite.
As you can see it says square.
So we're going to replace this with our player sprite.
So we're going to select the first one.
Let's drag it over to that slot.
And as soon as we drag it as you can see by now we can see our player.
But the problem is that it seems too much big.
So we can make our pixel per unit as Uh, something around.
I guess we have done with this one.
Sorry.
This one.
Okay, so we can make our pixel per unit something like 30 or 32 instead of, uh, 16, and let's do
it something around 20.
And let's click on this apply.
And now this seems perfect.
I go, uh, so let's go with uh, 20 and this seems perfect.
And once we are done make sure you adjust the collider.
So I'm going to select my player game object in the hierarchy.
And let's go over to this box Collider 2D.
And let's click on this Edit Collider.
Or you can simply click over here as well and edit the Collider as the size of your player game object.
Something like this.
And we're going to make this size and this seems perfect.
And also we need to move our this ground checkpoint fit to fit of this player game object.
So we're going to select our ground check and let's select the move tool.
And let's move it in the feet of this player game object.
So it's gonna check the over here instead of checking here.
And once we done, we can just go over to overrides of this player and then apply all.
Now it's fine.
And if we just go ahead uh, go ahead and then click on this play button, it should work fine so we
can make our player jump move and all of those things like moving left and right.
And we're gonna do the same thing with all of these sprites.
So let's but before we do, let's take a look so we can make jump as you can see.
So we also need to flip this player to the left side once it's or moving towards to the left direction.
So we need to flip our player to the left direction.
But before we do, let's uh select all of this sprite and let's do the same thing as we have done with
the idle one.
So we will get out of play mode, and we will select all of these sprite by holding down shift.
And we're not going to select this one, which is me.
So I'm gonna hold down control and let's click on it in order to deselect.
And now let's go over to Inspector uh pixel sprite mode.
We're going to leave it to multiple and pixel per unit.
We're gonna do 20 and filter mode to point no filter to get rid of blurry.
And let's click on this apply button in the bottom right.
And as soon as we click on apply it's gonna be fine.
And now it's fine.
And, uh, let's, uh, split individually.
So we will select for now jumping, running uh, attacking, working like that.
So we have the working here.
Let's click on this open sprite editor after selecting it.
And let's click on this slice in the top left uh left side in Sprite Editor tab.
And let's select automatic to create pixel count.
And let's count how many columns and rows rose.
We have so three, six, seven.
So we're going to put seven columns and one row.
Let's click on this slice and then apply button.
Basically do the same thing with all of these sprites but majorly majorly do with the uh, with uh we
basically needs like attacking, running, uh, walking or jumping.
So we need to do with those.
So I hope that how you can do it and you will, uh, able to get this in assets, uh, basically in
the resources, you can find these assets and you can use in your game to make your game.
So, uh, so basically to make your game.
So I hope you get the idea that how you can do it.
And I'm gonna press down Ctrl s to save my, uh, project, uh, project, whatever I have done so far
in unity editor, it will be saved.
Or you can simply move over to top left file and then click on the save button in order to save your
project.