Hello, guys.
So now that you know a bit about the city machine and how it works, we can make some basic settings
of the camera for this game.
All right.
It's going to be changed later because now we don't have final look of the game.
We don't know how it's going to be here when we have platforms, gapps and so on.
So we're just going to do some basic setup.
And then later on in the course on the Polish stage, we might just adjust it.
And let's go to the window package manager and we're going to select Unity Register over here.
It's very important.
And then just type here cinema and then select it and click install.
Once it is done, we can close the window, click right button over here, send machine virtual camera.
All right.
Now we have that.
We need to select it and drag player to the fallow field.
As I told you in the previous video, you might know that at this point.
A main camera controlled by Sydney machine brain.
So whatever changes you do here, it is not important.
It will not take an effect.
As you see.
Right.
I put five here and then change it back.
So all of the changes to the camera you want to do, you're supposed to do it here.
Now what we're going to change, We're going to change.
Aim to do nothing and body to frame in transpose poser.
That's cool.
Now we can change lens or to size to make it further or closer.
And for the moment, for the time being, I want to choose eight.
Let it be eight.
Then let's go.
Or maybe.
Sorry.
Maybe seven.
It's okay.
Yeah.
Now let's make sure this box is checked, save during play and go to play mode.
I will open body and at the moment what we can see the player is in the center of the screen, but this
is the endless runner and we need to see what is ahead of us.
We want to take our character and place it somewhere here on the left bottom part of the screen.
To do that, we can change this screen X and screen Y.
Let's reduce X to move it to the left.
So maybe point one is okay.
And for the why we need to increase it to move it higher.
So point seven, I guess, will be fine.
Now that is done, let's click play and see how it behaves.
So it moved a bit further, as we can see.
But still, it's okay.
Although I would like to move it a bit to the left.
First, let's learn why it actually moves to the right.
As you know, this camera follows the yellow dot over here and yellow dot can move inside of the soft
zone so we can decrease the soft zone to make it like that.
But actually want to have some soft zone there.
So when player starts moving, there is a kind of moving effect for the camera just a bit to add like
a cinematic feeling.
So what I want to do here is to increase this soft zone to something like that, but I want to change
the position of the soft zone.
So I'll move X of the soft zone just a bit like that.
So minus .28.
Now let's uncheck play and if you check to this safe during play, like I told you, all of the changes
should be saved.
Now let's go to play mode again and see how it behaves on the start.
So I'm clicking Go to Run and there is a bit movement for the camera.
There is also a look ahead function that allows you to move camera forward, but we actually have no
point of changing it for now because we don't have any platforms and we don't know how camera will behave
when you face the wall, for example.
So let's just put it zero for now and let's change this.
I want to do in this video is to change soft zone of the Y just by a tiny bit, just like that.
And now if we jump, we can see our camera moves like that.
It is kind of fast and can make you dizzy.
So what I want to do is to increase dumping.
Dumping slows movement of the camera.
And if we make it something like six now, when I jump, it's going to be like that just by a tiny bit.
So it will give us a bit of feeling of the action maybe, but it won't make it easy.
And again, this just say things for the time being so we can continue development of the game and not
focus too much on the camera because later we still going to need to change it when we have platforms,
level parts and so on.
And so let's keep it like that and you can see settings on the screen.
Yeah, just in case you can make it same as mine.
And let's go to next video.