Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:06,656 --> 00:00:12,800
The next thing we're going to talk about setting up a relaxing environment
2
00:00:13,824 --> 00:00:15,872
So the first thing I like to do is
3
00:00:16,384 --> 00:00:20,736
Basically clean everything up so the inside of various layers
4
00:00:20,992 --> 00:00:27,136
So you can't really create a layer in unity at least not like you can in Photoshop
5
00:00:27,392 --> 00:00:33,024
Why did you do it in unity is you create an empty game object and we're just going to call this
6
00:00:33,280 --> 00:00:34,816
Player one
7
00:00:35,328 --> 00:00:40,448
Ellis dragons just below the player must be sure everything is nice and $0
8
00:00:40,960 --> 00:00:44,288
0 position 0 station with a scale of 1
9
00:00:45,568 --> 00:00:49,664
Drag all of our ground elements in two player one
10
00:00:51,712 --> 00:00:53,760
Create a new game object
11
00:00:54,016 --> 00:00:55,552
Ring colours
12
00:00:56,576 --> 00:00:57,344
Liar
13
00:00:57,856 --> 00:00:58,624
2
14
00:00:59,392 --> 00:01:01,805
Anaemia 2 week and maybe put a lot of different game objects
15
00:01:01,807 --> 00:01:04,155
Subtitled by
-♪ online-courses.club ♪-
We compress knowledge for you!
https://t.me/joinchat/ailxpXoW3JVjYzQ1
16
00:01:04,156 --> 00:01:09,888
So what if we copied let's see one of these here and we pasted it inside
17
00:01:10,144 --> 00:01:11,168
Layer 2
18
00:01:11,936 --> 00:01:18,080
Well now we can actually triglyceride me copy and paste a little bit maybe you can make really tall buildings
19
00:01:18,336 --> 00:01:19,872
That's 0 this out
20
00:01:20,896 --> 00:01:27,040
Tall building here at all building here it's really difficult actually gets
21
00:01:27,296 --> 00:01:33,440
Step here because well everything is black so when we change the colour a little bit of the
22
00:01:33,696 --> 00:01:35,232
All buildings in the background
23
00:01:35,744 --> 00:01:41,120
And the sleeper so quick that say changed the spriterenderer colours
24
00:01:41,888 --> 00:01:46,496
Buildings in the background maybe we can make this a little bit more of a pink colour
25
00:01:46,752 --> 00:01:49,312
This is not actually changing colours
26
00:01:50,080 --> 00:01:55,968
The reason why is because when it a Sprite is already black inside of Photoshop
27
00:01:56,224 --> 00:01:58,528
You really can't change the colour anymore
28
00:01:59,808 --> 00:02:01,600
Better if you go into
29
00:02:02,368 --> 00:02:03,904
Photoshop file
30
00:02:04,160 --> 00:02:05,952
He make it white
31
00:02:06,208 --> 00:02:07,232
Go to
32
00:02:07,488 --> 00:02:09,024
Image adjustments
33
00:02:09,280 --> 00:02:10,816
Hue and saturation
34
00:02:11,840 --> 00:02:13,888
Just bring the liners up to White
35
00:02:14,400 --> 00:02:15,424
Ok
36
00:02:16,704 --> 00:02:17,728
And save
37
00:02:19,264 --> 00:02:21,056
Now go back in the Unity
38
00:02:21,824 --> 00:02:24,128
Everything will turn white
39
00:02:24,640 --> 00:02:26,176
Was also loudest
40
00:02:26,944 --> 00:02:28,480
How to change the colour
41
00:02:29,248 --> 00:02:31,040
Of this individual sprite
42
00:02:31,808 --> 00:02:36,416
But now all of the ground elements are white want to be black
43
00:02:36,672 --> 00:02:41,024
What we can do that really easily we select one of the ground prefabs
44
00:02:41,280 --> 00:02:42,560
The arrow here
45
00:02:43,328 --> 00:02:45,120
United change it to Black
46
00:02:48,704 --> 00:02:49,472
Save it
47
00:02:49,728 --> 00:02:51,520
Now you'll see it's black
48
00:02:51,776 --> 00:02:52,800
Well this
49
00:02:53,568 --> 00:02:54,080
Is pink
50
00:02:55,360 --> 00:03:01,504
So maybe last night do something like pink maybe let's do a colour similar to the background but maybe
51
00:03:01,760 --> 00:03:02,272
The darker
52
00:03:02,784 --> 00:03:08,160
So how about something like that can I look like there's a little bit of a pink fog in the background
53
00:03:08,416 --> 00:03:13,792
Just go ahead and just create a new prefab rename it and call it
54
00:03:14,304 --> 00:03:15,328
Building
55
00:03:18,656 --> 00:03:20,448
And Dragon over 2
56
00:03:20,704 --> 00:03:21,728
Prefabs
57
00:03:22,240 --> 00:03:26,848
Emily creating original prefab a prefab area is basically
58
00:03:27,104 --> 00:03:30,176
A prefab with a few changes on it
59
00:03:30,432 --> 00:03:32,224
That will be applied across the board
60
00:03:32,480 --> 00:03:36,064
When I get credit preparing or just going to do original prefab
61
00:03:37,344 --> 00:03:43,488
Alright see you never stated sorting is shifting back and forth sometimes it
62
00:03:43,744 --> 00:03:44,512
Behind
63
00:03:44,768 --> 00:03:46,304
In front
64
00:03:46,816 --> 00:03:51,936
In the reason why is because it's sorting layer is set to default 0
65
00:03:52,192 --> 00:03:56,800
What do you like the ground would say this ground here that's now behind
66
00:03:57,312 --> 00:03:58,592
The pink building
67
00:03:58,848 --> 00:04:00,896
Set also a default 0
68
00:04:02,176 --> 00:04:03,456
We actually made it
69
00:04:04,224 --> 00:04:04,992
3
70
00:04:05,248 --> 00:04:06,784
You never sit in front of it
71
00:04:07,296 --> 00:04:13,440
That's kind of a messy way to fix this because there's a lot of these ground objects that I'm going to need a set to
72
00:04:14,464 --> 00:04:16,000
Really don't want to do it that way
73
00:04:16,512 --> 00:04:19,583
Better way to do it is to create sorting group
74
00:04:20,351 --> 00:04:23,679
So I know the everything inside of layer 1
75
00:04:24,447 --> 00:04:27,007
All these black ground elements
76
00:04:27,519 --> 00:04:30,847
I know that I'm going to want them to be in a new sorting group
77
00:04:31,103 --> 00:04:34,431
So what we going to do is create a sorting group component
78
00:04:35,199 --> 00:04:38,271
And we can set the order in a layer 2 actually be
79
00:04:38,527 --> 00:04:39,039
Want
80
00:04:40,575 --> 00:04:44,927
And then we can put a sorting group onto layer 2
81
00:04:45,183 --> 00:04:47,231
Enjoy going to set it to 0
82
00:04:47,743 --> 00:04:50,815
Anything that I paste inside of here
83
00:04:52,863 --> 00:04:59,007
Inside of this layer to which is again just a blank game object and for treating it as a
84
00:05:01,823 --> 00:05:02,847
Taste
85
00:05:03,871 --> 00:05:05,919
Are buildings all over the place
86
00:05:07,455 --> 00:05:08,479
To create
87
00:05:08,991 --> 00:05:10,015
Background
88
00:05:12,063 --> 00:05:13,087
UK
89
00:05:13,343 --> 00:05:15,135
Play here
90
00:05:16,927 --> 00:05:17,951
Oh no
91
00:05:18,207 --> 00:05:19,999
You noticed that the player
92
00:05:21,279 --> 00:05:23,071
Is actually in her acting
93
00:05:24,095 --> 00:05:24,863
With
94
00:05:25,375 --> 00:05:26,399
Layer 2
95
00:05:26,655 --> 00:05:27,935
Really don't want that
96
00:05:28,447 --> 00:05:29,983
It's an easy fix
97
00:05:30,239 --> 00:05:34,079
Painfully we created a prefab for our building
98
00:05:34,335 --> 00:05:37,151
Are we going to go ahead in click the arrow here
99
00:05:37,919 --> 00:05:39,711
Inedit the prefab
100
00:05:40,223 --> 00:05:42,527
I know right off the bat what's wrong
101
00:05:42,783 --> 00:05:45,343
I don't want to polygon Collider on please
102
00:05:45,855 --> 00:05:47,391
Background buildings
103
00:05:47,903 --> 00:05:50,719
That was the only thing we needed to do to fix there
104
00:05:54,047 --> 00:05:55,071
Ok
105
00:05:55,327 --> 00:05:58,911
Everything was great except now the player
106
00:05:59,935 --> 00:06:01,983
Is behind the buildings
107
00:06:02,495 --> 00:06:04,543
So weird why is that
108
00:06:05,055 --> 00:06:05,567
Well
109
00:06:05,823 --> 00:06:09,151
It's because the player also has a sword in group
110
00:06:10,431 --> 00:06:12,479
Layer that is on is 0
111
00:06:13,503 --> 00:06:15,551
These are set to zero as well
112
00:06:16,319 --> 00:06:20,415
So you can see or sorting layers are getting a little bit complicated
113
00:06:20,927 --> 00:06:22,719
What's the weather we could fix that
114
00:06:23,999 --> 00:06:27,583
Well we could simply just make the player at 0
115
00:06:28,351 --> 00:06:31,423
We could make layer 2 at -1
116
00:06:32,191 --> 00:06:33,215
In the Sorting group
117
00:06:33,727 --> 00:06:36,287
And then they're wine we could set to 1
118
00:06:37,055 --> 00:06:39,871
That's a great way to do it but I can be a little bit confusing
119
00:06:40,639 --> 00:06:45,247
So what we can do is actually just pretty much make a rule in our minds
120
00:06:45,503 --> 00:06:48,831
The pleasure is always going to be at the default sorting layer
121
00:06:49,087 --> 00:06:50,111
Add 0
122
00:06:51,903 --> 00:06:54,975
Layer 2 is always going to be in -1
123
00:06:55,231 --> 00:06:58,303
And then layer wine is going to be at 1
124
00:06:58,815 --> 00:07:01,887
This is a little bit confusing actually
125
00:07:02,143 --> 00:07:06,239
Because there's not really a correlation between how and naming or layers
126
00:07:07,519 --> 00:07:09,311
And also the Sorting layer
127
00:07:09,823 --> 00:07:15,967
We really want to have it is clean and as correlated as possible so that we don't go crazy when we
128
00:07:16,223 --> 00:07:18,015
50 different layers
129
00:07:18,271 --> 00:07:21,599
First thing I'm gonna do is I'm actually going to drag the player
130
00:07:22,367 --> 00:07:24,415
To where he's actually sorted
131
00:07:24,671 --> 00:07:26,719
I know that layer 2
132
00:07:27,231 --> 00:07:28,767
Is under the player
133
00:07:29,535 --> 00:07:31,839
And Leia one is in front of the player
134
00:07:32,607 --> 00:07:36,191
Layer 2 isn't really layer 2 is it
135
00:07:36,447 --> 00:07:40,287
It's actually going to be layer -1
136
00:07:41,055 --> 00:07:45,407
Because it's in the order of -1 it's behind the player
137
00:07:45,919 --> 00:07:47,455
Layer 1 is
138
00:07:47,967 --> 00:07:49,759
In the order of 1
139
00:07:51,039 --> 00:07:53,087
So just a review
140
00:07:53,343 --> 00:07:54,623
Layer 1
141
00:07:56,159 --> 00:07:58,975
Sorting group component
142
00:07:59,743 --> 00:08:02,047
Is going to tell everything below it
143
00:08:02,303 --> 00:08:04,095
All of these various prefabs
144
00:08:04,607 --> 00:08:07,679
They need to be ordered
145
00:08:08,447 --> 00:08:11,263
In the default layer at 1
146
00:08:12,287 --> 00:08:13,055
Player
147
00:08:14,847 --> 00:08:17,919
We don't need a certain group here because it doesn't have any children
148
00:08:18,175 --> 00:08:21,759
So it's simply going to be sorting layer of 0
149
00:08:22,271 --> 00:08:24,063
And then layer -1
150
00:08:24,575 --> 00:08:28,159
Is well same thing sorting route by -1
151
00:08:28,927 --> 00:08:30,719
Now on we play
152
00:08:32,767 --> 00:08:35,071
Everything is sorted appropriately
153
00:08:35,583 --> 00:08:37,119
You know this one thing
154
00:08:39,423 --> 00:08:40,959
There's no parallax ing
155
00:08:41,215 --> 00:08:46,079
What is a relaxing in relationship to these two layers here
156
00:08:46,591 --> 00:08:47,871
If we had play
157
00:08:48,383 --> 00:08:50,943
You noticed that the buildings in the background
158
00:08:51,199 --> 00:08:54,015
Don't actually move at a slower speed
159
00:08:54,271 --> 00:08:55,295
Then the player
160
00:08:55,807 --> 00:08:59,391
New that doesn't make a lot of sense to you why would they all that actually
161
00:09:00,159 --> 00:09:05,023
Go to the main camera here instead of being in the projection mode of orthographic
162
00:09:06,047 --> 00:09:08,095
Put it into perspective mode
163
00:09:08,351 --> 00:09:12,959
Perspective mode is actually the way the human eye actually looks of things
164
00:09:13,471 --> 00:09:16,799
Does it play in hopefully you guys can see
165
00:09:17,311 --> 00:09:19,871
Perspective mode looks a little bit different
166
00:09:21,407 --> 00:09:21,919
Well
167
00:09:22,175 --> 00:09:26,527
United State can look the same write all that actually because
168
00:09:27,039 --> 00:09:33,183
Exit isometric mode in another way of putting that is orthographic mode in actually click this sent
169
00:09:33,439 --> 00:09:35,487
Hear it put it into perspective mode
170
00:09:35,743 --> 00:09:39,071
Weekend zoom around the scene and see
171
00:09:39,327 --> 00:09:40,095
Oh
172
00:09:40,351 --> 00:09:43,935
Hyoscine is all along the exact same axis
173
00:09:44,191 --> 00:09:48,031
Satsuma round where the camera is pointing at the same here
174
00:09:48,287 --> 00:09:50,591
And if we were to actually backup
175
00:09:51,359 --> 00:09:53,151
The background to about here
176
00:09:53,663 --> 00:09:55,455
Now you can see
177
00:09:56,223 --> 00:10:00,716
We've got some perspective see how things look a little bit more layered it a little bit more 3D
178
00:10:00,717 --> 00:10:03,144
Subtitled by
-♪ online-courses.club ♪-
We compress knowledge for you!
https://t.me/joinchat/ailxpXoW3JVjYzQ1
179
00:10:03,145 --> 00:10:07,999
There's actually because the background elements with dark purple buildings here actually moving
180
00:10:08,255 --> 00:10:09,023
Slower
181
00:10:10,047 --> 00:10:11,327
Then the Black
182
00:10:11,839 --> 00:10:14,655
Poor ground almonds the note of this
183
00:10:15,935 --> 00:10:16,959
Right here
184
00:10:17,215 --> 00:10:20,543
Move faster in the background element here
185
00:10:21,311 --> 00:10:24,895
Causing a feeling of perspective
186
00:10:25,407 --> 00:10:28,991
Now you can definitely create a 2D game using
187
00:10:29,247 --> 00:10:32,319
Perspective projection mode on your camera
188
00:10:32,575 --> 00:10:34,367
That's certainly possible
189
00:10:34,623 --> 00:10:39,231
But I would not recommend it it's nice to have a lot more control
190
00:10:39,743 --> 00:10:45,887
With the orthographic mode the perspective mode can be a little bit messy so without getting
191
00:10:46,143 --> 00:10:50,495
To complicated hear my explanation let me just recommended that we
192
00:10:51,519 --> 00:10:55,615
Use the orthographic projection mode in simulator
193
00:10:55,871 --> 00:10:56,895
Parallax
194
00:10:57,663 --> 00:10:59,967
How do you simulate parallax
195
00:11:00,223 --> 00:11:02,271
First we're going to make sure our layers
196
00:11:02,527 --> 00:11:03,295
Are
197
00:11:03,551 --> 00:11:04,319
0 Dell
198
00:11:04,831 --> 00:11:05,343
Good
199
00:11:06,111 --> 00:11:07,903
So everything is on the Z axis
200
00:11:08,415 --> 00:11:09,951
Debenhams our game is
201
00:11:10,463 --> 00:11:13,791
There is nothing happening
202
00:11:14,047 --> 00:11:18,655
In the Z axis that gives a lot more control of our 2D game
203
00:11:19,423 --> 00:11:25,567
So now that we have a lot of control over I layers we can actually just use the parallax
204
00:11:25,823 --> 00:11:27,871
Scripts below this video
205
00:11:28,639 --> 00:11:34,271
Can you get to blue dragon goes on to your various layers and it's going to simulate that perspective mode
206
00:11:34,527 --> 00:11:37,343
All over still in orthographic mode
207
00:11:37,599 --> 00:11:43,743
No I've already got those two scripts in my project here so what I'm going to do as I'm going to drag the parallax controller
208
00:11:43,999 --> 00:11:45,791
To the layers parent here
209
00:11:46,815 --> 00:11:51,167
Is it basically just a blank game object now with the parallax controller
210
00:11:51,935 --> 00:11:56,799
This controller is going to control the rate at which these layers can move
211
00:11:57,823 --> 00:12:01,663
I'm just going to drag a pair like layer to the background element here
212
00:12:02,943 --> 00:12:06,783
Set the parallax amount to -9
213
00:12:07,295 --> 00:12:11,135
The further we dragged the parallax amount on The Slider here
214
00:12:11,647 --> 00:12:14,719
In the negative Direction is actually going to simulate
215
00:12:14,975 --> 00:12:17,535
Is buildings moving in the background
216
00:12:17,791 --> 00:12:20,607
Play and see if we've simulator
217
00:12:21,119 --> 00:12:22,399
Perspective mode
218
00:12:23,167 --> 00:12:27,263
Has Arsenal looks great we have a relaxing occurring here
219
00:12:27,519 --> 00:12:28,543
What is buildings
220
00:12:30,079 --> 00:12:30,847
Batasan
221
00:12:31,103 --> 00:12:33,151
So what if we added a couple more layers
222
00:12:33,407 --> 00:12:37,759
Are we can have 11 out of 1 what about layer -2
223
00:12:38,783 --> 00:12:40,319
If we can do something like that
224
00:12:40,831 --> 00:12:46,975
Remember when make sure are sorting group is set properly for later and I have to say we're going to set the order in Layer 2
225
00:12:48,767 --> 00:12:54,911
And then what we can do with baby delete all of these buildings except for this one here and move it over just eat
226
00:12:55,167 --> 00:13:00,031
Add Ian but also maybe increase the brightness just a little bit
227
00:13:00,799 --> 00:13:02,847
Something about that
228
00:13:03,359 --> 00:13:06,175
Sorry simulates them being in the back on a little bit more
229
00:13:06,687 --> 00:13:10,015
So winning dows just shift your colour
230
00:13:10,271 --> 00:13:11,551
From the Black
231
00:13:11,807 --> 00:13:13,087
All the way towards
232
00:13:13,599 --> 00:13:15,135
Is greatest purple here
233
00:13:15,903 --> 00:13:20,511
Got little bit grey hair with darker here we go it's awesome
234
00:13:20,767 --> 00:13:23,839
And we recall this building BG
235
00:13:24,095 --> 00:13:25,375
Go ahead
236
00:13:25,887 --> 00:13:32,031
In just drag this prefab into the previous folder is going to create a new
237
00:13:32,287 --> 00:13:35,615
Prefab just go ahead and click original prefab
238
00:13:37,919 --> 00:13:39,455
Now we can actually
239
00:13:40,223 --> 00:13:42,271
Create a little bit more parallaxing
240
00:13:42,783 --> 00:13:44,063
What's the third layer here
241
00:13:45,087 --> 00:13:47,391
I just paste them all over the place here
242
00:14:03,007 --> 00:14:03,775
Awesome
243
00:14:04,543 --> 00:14:05,311
Alright
244
00:14:05,823 --> 00:14:06,591
Tell
245
00:14:07,103 --> 00:14:08,639
Let's see how this looks
246
00:14:09,151 --> 00:14:10,687
Parallax perspective
247
00:14:11,967 --> 00:14:16,575
Do you notice the both moving at the same rate actually why is that well
248
00:14:16,831 --> 00:14:21,695
Play a good one is currently set to -1 and -2 was set to -1
249
00:14:22,207 --> 00:14:26,047
Exactly what we want to do with maybe like Saturday and I have one two negative
250
00:14:26,303 --> 00:14:27,327
Week 5
251
00:14:29,119 --> 00:14:32,703
There we go now we have some beautiful layering happening
252
00:14:33,471 --> 00:14:39,615
No notice how things are slowly starting to come to life and feel a lot more deep in alive
253
00:14:40,127 --> 00:14:41,151
That's great
254
00:14:42,687 --> 00:14:44,479
What about in the other direction
255
00:14:44,735 --> 00:14:46,271
Can we create a layer
256
00:14:47,039 --> 00:14:48,831
Going towards the camera
257
00:14:49,343 --> 00:14:50,623
Actually yes
258
00:14:51,647 --> 00:14:52,927
So what we can do
259
00:14:53,439 --> 00:14:56,255
Official copy layer -1 here
260
00:14:56,767 --> 00:15:00,863
Actually movie Above layer 1 and layer 2
261
00:15:01,375 --> 00:15:02,911
Tell there to here
262
00:15:03,167 --> 00:15:07,775
Let's go ahead and delete all of the buildings inside a player to accept this one
263
00:15:09,055 --> 00:15:12,127
And how about we scale it be pretty big
264
00:15:12,895 --> 00:15:14,687
And make it Black
265
00:15:15,711 --> 00:15:18,271
That's great and maybe we could put them in front
266
00:15:21,599 --> 00:15:25,183
I must be sure to call this building for ground
267
00:15:25,951 --> 00:15:30,047
Just drag this in your prefab here original prefab
268
00:15:30,559 --> 00:15:33,119
What's go ahead in copy and paste this
269
00:15:34,911 --> 00:15:36,447
As we move down
270
00:15:36,703 --> 00:15:39,519
We have some sorting layer issues you see that
271
00:15:39,775 --> 00:15:43,871
Down here that's because they're too we need make sure we said it to
272
00:15:44,127 --> 00:15:45,151
2
273
00:15:46,175 --> 00:15:52,319
So but also remember that layer 2 is actually in front of the player so instead of
274
00:15:52,575 --> 00:15:58,719
Being a negative number we can go positive how about positive
275
00:15:58,975 --> 00:15:59,743
M25
276
00:16:00,511 --> 00:16:03,327
Let's go ahead and play and see how everything looks
277
00:16:05,631 --> 00:16:06,399
Well
278
00:16:06,911 --> 00:16:08,959
I can actually see what's going on
279
00:16:09,215 --> 00:16:09,983
Why is that
280
00:16:10,495 --> 00:16:16,639
That's because the ground is currently black and so there's really no distinction between the ground
281
00:16:17,919 --> 00:16:22,271
In the foreground you can kind of see it occurring here so it's go ahead
282
00:16:22,527 --> 00:16:24,831
And jump to layer one here into the ground
283
00:16:25,343 --> 00:16:28,415
And what we can do is actually first
284
00:16:28,671 --> 00:16:31,487
Using with eyedropper tool here in a sprite renderer
285
00:16:31,743 --> 00:16:33,023
What's go ahead in
286
00:16:33,535 --> 00:16:35,071
I like this colour here
287
00:16:35,839 --> 00:16:36,607
Awesome
288
00:16:37,119 --> 00:16:43,263
How far we add this to a swatches so quick add new preset now he has colour
289
00:16:43,519 --> 00:16:44,799
Watches
290
00:16:45,311 --> 00:16:51,455
Now we can go inside of a ground one prefab and actually just choose this
291
00:16:51,711 --> 00:16:55,551
I'm here and maybe go just a bit darker so it doesn't blend with the background
292
00:16:56,319 --> 00:16:58,367
That's great and then it saved
293
00:16:59,135 --> 00:17:01,183
Awesome so now our ground
294
00:17:01,695 --> 00:17:03,999
Is actually this dark purple colour
295
00:17:04,255 --> 00:17:06,559
In the foreground is that black colour
296
00:17:06,815 --> 00:17:08,863
There's a nice distinction between the two
297
00:17:10,399 --> 00:17:11,423
Ok
298
00:17:11,935 --> 00:17:12,959
Oh wow
299
00:17:13,215 --> 00:17:18,335
A lot better than I thought it would make me want to make a really simplistic game like this
300
00:17:18,591 --> 00:17:23,711
The foreground is moving just a little bit more in a cell Direction
301
00:17:24,479 --> 00:17:26,271
So we can issue here
302
00:17:26,527 --> 00:17:28,575
The nearest one
303
00:17:28,831 --> 00:17:30,623
Lock that we were adjusting
304
00:17:31,647 --> 00:17:34,975
Is actually the wrong colour and I try and just a second
305
00:17:35,743 --> 00:17:38,559
But we have some nice pair relaxing here this is great
306
00:17:39,327 --> 00:17:43,935
And we forgot I actually change that background parallax so it's do that really quick to
307
00:17:44,703 --> 00:17:48,287
Play a -1 is going to be negative .5 great
308
00:17:48,799 --> 00:17:50,591
And Leia to
309
00:17:50,847 --> 00:17:52,639
Set appointment to 5
310
00:17:53,151 --> 00:17:53,919
That's great
311
00:17:54,431 --> 00:17:55,967
No one here
312
00:17:56,223 --> 00:17:56,991
Coronavirus
313
00:17:57,247 --> 00:18:03,391
That there's one object here that's the wrong colour
314
00:18:03,647 --> 00:18:04,927
Vector sprites
315
00:18:05,183 --> 00:18:07,487
Just slowly click around here we go
316
00:18:07,999 --> 00:18:10,559
And this should be that colour
317
00:18:11,327 --> 00:18:13,887
Alright let's play again and make sure everything was good
318
00:18:14,143 --> 00:18:15,423
Before we move forward
319
00:18:16,447 --> 00:18:17,215
Awesome
320
00:18:17,983 --> 00:18:19,007
This is great
321
00:18:19,263 --> 00:18:20,287
Is a straight
322
00:18:21,823 --> 00:18:24,127
I love the parallax feels really good
323
00:18:25,663 --> 00:18:28,735
It definitely makes a game come to life I really like it
324
00:18:29,759 --> 00:18:34,111
Awesome so that's how we're going to be doing laying in our game
325
00:18:34,367 --> 00:18:38,463
If we wanted to let say have trees in our game
326
00:18:38,975 --> 00:18:43,071
Maybe we wanted them to move along
327
00:18:43,839 --> 00:18:45,375
In the background here
328
00:18:45,887 --> 00:18:50,495
What you do is simply drag your Sprite into layer -1
329
00:18:51,007 --> 00:18:54,079
So in this case just to show you as an example that's a
330
00:18:54,335 --> 00:18:58,431
We had a Sprite or tree trunk that looks something like this maybe
331
00:18:58,687 --> 00:19:02,527
Which will designers on Photoshop when you're actually illustrating a game
332
00:19:02,783 --> 00:19:04,831
You can have your tree there
333
00:19:05,087 --> 00:19:07,903
Then you can paste it and maybe move it over here
334
00:19:08,415 --> 00:19:14,559
So you can see we can put a lot of different objects all inside of layer -1 here
335
00:19:14,815 --> 00:19:19,679
Is going to do two things one it moves that object
336
00:19:20,703 --> 00:19:24,543
In this parallax group so it all move at the same rate
337
00:19:25,311 --> 00:19:26,335
And also
338
00:19:26,591 --> 00:19:32,735
It's going to put it in the default -1 sorting group meaning the tree is going to appear
339
00:19:32,991 --> 00:19:33,503
Find
340
00:19:33,759 --> 00:19:34,527
Player
341
00:19:36,063 --> 00:19:39,903
So what if I had this tree in it was maybe this colour here
342
00:19:40,159 --> 00:19:42,207
But I wanted it to appear behind
343
00:19:42,719 --> 00:19:43,487
This building
344
00:19:43,999 --> 00:19:46,559
Well I got to do is drag it up
345
00:19:47,071 --> 00:19:49,119
And it will appear below it
346
00:19:49,375 --> 00:19:51,935
In unity when you move something up word
347
00:19:52,703 --> 00:19:54,495
Actually appears behind
348
00:19:54,751 --> 00:19:55,775
What's blow it
349
00:19:59,359 --> 00:20:01,919
Let's go ahead and keep this colour the same here
350
00:20:02,175 --> 00:20:02,943
Hitler
351
00:20:07,807 --> 00:20:13,951
Awesome do we get a lot of different details slowly emerging
352
00:20:14,207 --> 00:20:14,719
Frontier
353
00:20:17,279 --> 00:20:18,303
Looks great
26227
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.