1
00:00:00,000 --> 00:00:00,000
Hello, guys.

2
00:00:00,000 --> 00:00:06,000
So now that you know a bit about the city machine and how it works, we can make some basic settings

3
00:00:06,000 --> 00:00:08,000
of the camera for this game.

4
00:00:08,000 --> 00:00:08,000
All right.

5
00:00:08,000 --> 00:00:12,000
It's going to be changed later because now we don't have final look of the game.

6
00:00:12,000 --> 00:00:17,000
We don't know how it's going to be here when we have platforms, gapps and so on.

7
00:00:17,000 --> 00:00:19,000
So we're just going to do some basic setup.

8
00:00:19,000 --> 00:00:23,000
And then later on in the course on the Polish stage, we might just adjust it.

9
00:00:24,000 --> 00:00:30,000
And let's go to the window package manager and we're going to select Unity Register over here.

10
00:00:30,000 --> 00:00:31,000
It's very important.

11
00:00:31,000 --> 00:00:36,000
And then just type here cinema and then select it and click install.

12
00:00:37,000 --> 00:00:44,000
Once it is done, we can close the window, click right button over here, send machine virtual camera.

13
00:00:45,000 --> 00:00:45,000
All right.

14
00:00:45,000 --> 00:00:46,000
Now we have that.

15
00:00:46,000 --> 00:00:50,000
We need to select it and drag player to the fallow field.

16
00:00:51,000 --> 00:00:56,000
As I told you in the previous video, you might know that at this point.

17
00:00:57,000 --> 00:01:00,000
A main camera controlled by Sydney machine brain.

18
00:01:00,000 --> 00:01:04,000
So whatever changes you do here, it is not important.

19
00:01:04,000 --> 00:01:06,000
It will not take an effect.

20
00:01:08,000 --> 00:01:08,000
As you see.

21
00:01:09,000 --> 00:01:09,000
Right.

22
00:01:09,000 --> 00:01:11,000
I put five here and then change it back.

23
00:01:11,000 --> 00:01:16,000
So all of the changes to the camera you want to do, you're supposed to do it here.

24
00:01:16,000 --> 00:01:18,000
Now what we're going to change, We're going to change.

25
00:01:18,000 --> 00:01:23,000
Aim to do nothing and body to frame in transpose poser.

26
00:01:23,000 --> 00:01:24,000
That's cool.

27
00:01:24,000 --> 00:01:30,000
Now we can change lens or to size to make it further or closer.

28
00:01:30,000 --> 00:01:34,000
And for the moment, for the time being, I want to choose eight.

29
00:01:34,000 --> 00:01:35,000
Let it be eight.

30
00:01:35,000 --> 00:01:36,000
Then let's go.

31
00:01:36,000 --> 00:01:37,000
Or maybe.

32
00:01:37,000 --> 00:01:37,000
Sorry.

33
00:01:37,000 --> 00:01:38,000
Maybe seven.

34
00:01:38,000 --> 00:01:38,000
It's okay.

35
00:01:38,000 --> 00:01:39,000
Yeah.

36
00:01:39,000 --> 00:01:44,000
Now let's make sure this box is checked, save during play and go to play mode.

37
00:01:44,000 --> 00:01:49,000
I will open body and at the moment what we can see the player is in the center of the screen, but this

38
00:01:49,000 --> 00:01:52,000
is the endless runner and we need to see what is ahead of us.

39
00:01:52,000 --> 00:01:59,000
We want to take our character and place it somewhere here on the left bottom part of the screen.

40
00:01:59,000 --> 00:02:02,000
To do that, we can change this screen X and screen Y.

41
00:02:02,000 --> 00:02:05,000
Let's reduce X to move it to the left.

42
00:02:06,000 --> 00:02:09,000
So maybe point one is okay.

43
00:02:10,000 --> 00:02:14,000
And for the why we need to increase it to move it higher.

44
00:02:14,000 --> 00:02:17,000
So point seven, I guess, will be fine.

45
00:02:18,000 --> 00:02:21,000
Now that is done, let's click play and see how it behaves.

46
00:02:22,000 --> 00:02:24,000
So it moved a bit further, as we can see.

47
00:02:24,000 --> 00:02:26,000
But still, it's okay.

48
00:02:26,000 --> 00:02:28,000
Although I would like to move it a bit to the left.

49
00:02:28,000 --> 00:02:31,000
First, let's learn why it actually moves to the right.

50
00:02:31,000 --> 00:02:37,000
As you know, this camera follows the yellow dot over here and yellow dot can move inside of the soft

51
00:02:37,000 --> 00:02:43,000
zone so we can decrease the soft zone to make it like that.

52
00:02:43,000 --> 00:02:45,000
But actually want to have some soft zone there.

53
00:02:45,000 --> 00:02:53,000
So when player starts moving, there is a kind of moving effect for the camera just a bit to add like

54
00:02:53,000 --> 00:02:54,000
a cinematic feeling.

55
00:02:54,000 --> 00:03:00,000
So what I want to do here is to increase this soft zone to something like that, but I want to change

56
00:03:00,000 --> 00:03:01,000
the position of the soft zone.

57
00:03:01,000 --> 00:03:06,000
So I'll move X of the soft zone just a bit like that.

58
00:03:06,000 --> 00:03:10,000
So minus .28.

59
00:03:11,000 --> 00:03:17,000
Now let's uncheck play and if you check to this safe during play, like I told you, all of the changes

60
00:03:17,000 --> 00:03:18,000
should be saved.

61
00:03:18,000 --> 00:03:21,000
Now let's go to play mode again and see how it behaves on the start.

62
00:03:21,000 --> 00:03:25,000
So I'm clicking Go to Run and there is a bit movement for the camera.

63
00:03:25,000 --> 00:03:32,000
There is also a look ahead function that allows you to move camera forward, but we actually have no

64
00:03:32,000 --> 00:03:37,000
point of changing it for now because we don't have any platforms and we don't know how camera will behave

65
00:03:37,000 --> 00:03:39,000
when you face the wall, for example.

66
00:03:39,000 --> 00:03:42,000
So let's just put it zero for now and let's change this.

67
00:03:42,000 --> 00:03:50,000
I want to do in this video is to change soft zone of the Y just by a tiny bit, just like that.

68
00:03:51,000 --> 00:03:55,000
And now if we jump, we can see our camera moves like that.

69
00:03:55,000 --> 00:03:58,000
It is kind of fast and can make you dizzy.

70
00:03:58,000 --> 00:04:01,000
So what I want to do is to increase dumping.

71
00:04:01,000 --> 00:04:04,000
Dumping slows movement of the camera.

72
00:04:04,000 --> 00:04:12,000
And if we make it something like six now, when I jump, it's going to be like that just by a tiny bit.

73
00:04:12,000 --> 00:04:18,000
So it will give us a bit of feeling of the action maybe, but it won't make it easy.

74
00:04:18,000 --> 00:04:24,000
And again, this just say things for the time being so we can continue development of the game and not

75
00:04:24,000 --> 00:04:29,000
focus too much on the camera because later we still going to need to change it when we have platforms,

76
00:04:29,000 --> 00:04:31,000
level parts and so on.

77
00:04:31,000 --> 00:04:37,000
And so let's keep it like that and you can see settings on the screen.

78
00:04:37,000 --> 00:04:41,000
Yeah, just in case you can make it same as mine.

79
00:04:41,000 --> 00:04:43,000
And let's go to next video.

