All language subtitles for lesson088

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian Download
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

The next thing we're going to talk about setting up a relaxing environment

So the first thing I like to do is

Basically clean everything up so the inside of various layers

So you can't really create a layer in unity at least not like you can in Photoshop

Why did you do it in unity is you create an empty game object and we're just going to call this

Player one

Ellis dragons just below the player must be sure everything is nice and $0

0 position 0 station with a scale of 1

Drag all of our ground elements in two player one

Create a new game object

Ring colours

Liar

2

Anaemia 2 week and maybe put a lot of different game objects

Subtitled by -♪ online-courses.club ♪- We compress knowledge for you! https://t.me/joinchat/ailxpXoW3JVjYzQ1

So what if we copied let's see one of these here and we pasted it inside

Layer 2

Well now we can actually triglyceride me copy and paste a little bit maybe you can make really tall buildings

That's 0 this out

Tall building here at all building here it's really difficult actually gets

Step here because well everything is black so when we change the colour a little bit of the

All buildings in the background

And the sleeper so quick that say changed the spriterenderer colours

Buildings in the background maybe we can make this a little bit more of a pink colour

This is not actually changing colours

The reason why is because when it a Sprite is already black inside of Photoshop

You really can't change the colour anymore

Better if you go into

Photoshop file

He make it white

Go to

Image adjustments

Hue and saturation

Just bring the liners up to White

Ok

And save

Now go back in the Unity

Everything will turn white

Was also loudest

How to change the colour

Of this individual sprite

But now all of the ground elements are white want to be black

What we can do that really easily we select one of the ground prefabs

The arrow here

United change it to Black

Save it

Now you'll see it's black

Well this

Is pink

So maybe last night do something like pink maybe let's do a colour similar to the background but maybe

The darker

So how about something like that can I look like there's a little bit of a pink fog in the background

Just go ahead and just create a new prefab rename it and call it

Building

And Dragon over 2

Prefabs

Emily creating original prefab a prefab area is basically

A prefab with a few changes on it

That will be applied across the board

When I get credit preparing or just going to do original prefab

Alright see you never stated sorting is shifting back and forth sometimes it

Behind

In front

In the reason why is because it's sorting layer is set to default 0

What do you like the ground would say this ground here that's now behind

The pink building

Set also a default 0

We actually made it

3

You never sit in front of it

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

Really don't want to do it that way

Better way to do it is to create sorting group

So I know the everything inside of layer 1

All these black ground elements

I know that I'm going to want them to be in a new sorting group

So what we going to do is create a sorting group component

And we can set the order in a layer 2 actually be

Want

And then we can put a sorting group onto layer 2

Enjoy going to set it to 0

Anything that I paste inside of here

Inside of this layer to which is again just a blank game object and for treating it as a

Taste

Are buildings all over the place

To create

Background

UK

Play here

Oh no

You noticed that the player

Is actually in her acting

With

Layer 2

Really don't want that

It's an easy fix

Painfully we created a prefab for our building

Are we going to go ahead in click the arrow here

Inedit the prefab

I know right off the bat what's wrong

I don't want to polygon Collider on please

Background buildings

That was the only thing we needed to do to fix there

Ok

Everything was great except now the player

Is behind the buildings

So weird why is that

Well

It's because the player also has a sword in group

Layer that is on is 0

These are set to zero as well

So you can see or sorting layers are getting a little bit complicated

What's the weather we could fix that

Well we could simply just make the player at 0

We could make layer 2 at -1

In the Sorting group

And then they're wine we could set to 1

That's a great way to do it but I can be a little bit confusing

So what we can do is actually just pretty much make a rule in our minds

The pleasure is always going to be at the default sorting layer

Add 0

Layer 2 is always going to be in -1

And then layer wine is going to be at 1

This is a little bit confusing actually

Because there's not really a correlation between how and naming or layers

And also the Sorting layer

We really want to have it is clean and as correlated as possible so that we don't go crazy when we

50 different layers

First thing I'm gonna do is I'm actually going to drag the player

To where he's actually sorted

I know that layer 2

Is under the player

And Leia one is in front of the player

Layer 2 isn't really layer 2 is it

It's actually going to be layer -1

Because it's in the order of -1 it's behind the player

Layer 1 is

In the order of 1

So just a review

Layer 1

Sorting group component

Is going to tell everything below it

All of these various prefabs

They need to be ordered

In the default layer at 1

Player

We don't need a certain group here because it doesn't have any children

So it's simply going to be sorting layer of 0

And then layer -1

Is well same thing sorting route by -1

Now on we play

Everything is sorted appropriately

You know this one thing

There's no parallax ing

What is a relaxing in relationship to these two layers here

If we had play

You noticed that the buildings in the background

Don't actually move at a slower speed

Then the player

New that doesn't make a lot of sense to you why would they all that actually

Go to the main camera here instead of being in the projection mode of orthographic

Put it into perspective mode

Perspective mode is actually the way the human eye actually looks of things

Does it play in hopefully you guys can see

Perspective mode looks a little bit different

Well

United State can look the same write all that actually because

Exit isometric mode in another way of putting that is orthographic mode in actually click this sent

Hear it put it into perspective mode

Weekend zoom around the scene and see

Oh

Hyoscine is all along the exact same axis

Satsuma round where the camera is pointing at the same here

And if we were to actually backup

The background to about here

Now you can see

We've got some perspective see how things look a little bit more layered it a little bit more 3D

Subtitled by -♪ online-courses.club ♪- We compress knowledge for you! https://t.me/joinchat/ailxpXoW3JVjYzQ1

There's actually because the background elements with dark purple buildings here actually moving

Slower

Then the Black

Poor ground almonds the note of this

Right here

Move faster in the background element here

Causing a feeling of perspective

Now you can definitely create a 2D game using

Perspective projection mode on your camera

That's certainly possible

But I would not recommend it it's nice to have a lot more control

With the orthographic mode the perspective mode can be a little bit messy so without getting

To complicated hear my explanation let me just recommended that we

Use the orthographic projection mode in simulator

Parallax

How do you simulate parallax

First we're going to make sure our layers

Are

0 Dell

Good

So everything is on the Z axis

Debenhams our game is

There is nothing happening

In the Z axis that gives a lot more control of our 2D game

So now that we have a lot of control over I layers we can actually just use the parallax

Scripts below this video

Can you get to blue dragon goes on to your various layers and it's going to simulate that perspective mode

All over still in orthographic mode

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

To the layers parent here

Is it basically just a blank game object now with the parallax controller

This controller is going to control the rate at which these layers can move

I'm just going to drag a pair like layer to the background element here

Set the parallax amount to -9

The further we dragged the parallax amount on The Slider here

In the negative Direction is actually going to simulate

Is buildings moving in the background

Play and see if we've simulator

Perspective mode

Has Arsenal looks great we have a relaxing occurring here

What is buildings

Batasan

So what if we added a couple more layers

Are we can have 11 out of 1 what about layer -2

If we can do something like that

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

And then what we can do with baby delete all of these buildings except for this one here and move it over just eat

Add Ian but also maybe increase the brightness just a little bit

Something about that

Sorry simulates them being in the back on a little bit more

So winning dows just shift your colour

From the Black

All the way towards

Is greatest purple here

Got little bit grey hair with darker here we go it's awesome

And we recall this building BG

Go ahead

In just drag this prefab into the previous folder is going to create a new

Prefab just go ahead and click original prefab

Now we can actually

Create a little bit more parallaxing

What's the third layer here

I just paste them all over the place here

Awesome

Alright

Tell

Let's see how this looks

Parallax perspective

Do you notice the both moving at the same rate actually why is that well

Play a good one is currently set to -1 and -2 was set to -1

Exactly what we want to do with maybe like Saturday and I have one two negative

Week 5

There we go now we have some beautiful layering happening

No notice how things are slowly starting to come to life and feel a lot more deep in alive

That's great

What about in the other direction

Can we create a layer

Going towards the camera

Actually yes

So what we can do

Official copy layer -1 here

Actually movie Above layer 1 and layer 2

Tell there to here

Let's go ahead and delete all of the buildings inside a player to accept this one

And how about we scale it be pretty big

And make it Black

That's great and maybe we could put them in front

I must be sure to call this building for ground

Just drag this in your prefab here original prefab

What's go ahead in copy and paste this

As we move down

We have some sorting layer issues you see that

Down here that's because they're too we need make sure we said it to

2

So but also remember that layer 2 is actually in front of the player so instead of

Being a negative number we can go positive how about positive

M25

Let's go ahead and play and see how everything looks

Well

I can actually see what's going on

Why is that

That's because the ground is currently black and so there's really no distinction between the ground

In the foreground you can kind of see it occurring here so it's go ahead

And jump to layer one here into the ground

And what we can do is actually first

Using with eyedropper tool here in a sprite renderer

What's go ahead in

I like this colour here

Awesome

How far we add this to a swatches so quick add new preset now he has colour

Watches

Now we can go inside of a ground one prefab and actually just choose this

I'm here and maybe go just a bit darker so it doesn't blend with the background

That's great and then it saved

Awesome so now our ground

Is actually this dark purple colour

In the foreground is that black colour

There's a nice distinction between the two

Ok

Oh wow

A lot better than I thought it would make me want to make a really simplistic game like this

The foreground is moving just a little bit more in a cell Direction

So we can issue here

The nearest one

Lock that we were adjusting

Is actually the wrong colour and I try and just a second

But we have some nice pair relaxing here this is great

And we forgot I actually change that background parallax so it's do that really quick to

Play a -1 is going to be negative .5 great

And Leia to

Set appointment to 5

That's great

No one here

Coronavirus

That there's one object here that's the wrong colour

Vector sprites

Just slowly click around here we go

And this should be that colour

Alright let's play again and make sure everything was good

Before we move forward

Awesome

This is great

Is a straight

I love the parallax feels really good

It definitely makes a game come to life I really like it

Awesome so that's how we're going to be doing laying in our game

If we wanted to let say have trees in our game

Maybe we wanted them to move along

In the background here

What you do is simply drag your Sprite into layer -1

So in this case just to show you as an example that's a

We had a Sprite or tree trunk that looks something like this maybe

Which will designers on Photoshop when you're actually illustrating a game

You can have your tree there

Then you can paste it and maybe move it over here

So you can see we can put a lot of different objects all inside of layer -1 here

Is going to do two things one it moves that object

In this parallax group so it all move at the same rate

And also

It's going to put it in the default -1 sorting group meaning the tree is going to appear

Find

Player

So what if I had this tree in it was maybe this colour here

But I wanted it to appear behind

This building

Well I got to do is drag it up

And it will appear below it

In unity when you move something up word

Actually appears behind

What's blow it

Let's go ahead and keep this colour the same here

Hitler

Awesome do we get a lot of different details slowly emerging

Frontier

Looks great

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.