All language subtitles for lesson087

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

So if you want the camera actually folder

Thing we installed that package the very beginning of this section called cinemachine

There it is

Actually going to create a 2D camera

It's going to do a ton of work for us

That we really nice to yourselves

Post office created was called a virtual camera which basically just controls the main camera and you can see

Cinemachine icon here which means that it's got a cinemachine brain it's really creepy

It's got a controller on it that throws the camera so we need these two game objects the main can

And also the virtual camera as well

I don't like the way this is named it's really confusing it's camera main

I think that's what it means

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

Is just a messy way of saying blog

Is the virtual camera

Virtual camera all it does it has the script on it and it controls the main camera

Holidays

Is a lot of stuff here guys there's a lot of stuff that we're not going to get into you in

Weirdly enough I feel weird giving this advice but I found that this is absolutely true when you met

A game

If you try and understand everything

If you obsessively looking into every little variable trying to understand things you're going to become overwhelmed

How to make games for a 10 years I will look at this cinemachine virtual camera script and look at the cinema

Brain there's like maybe three or four variables that I worry about the rest is

Honestly

It's pretty messy and it looks like something and only understand

Are we going to worry about right now

Is the follow

Variable

What do we want the cinemachine virtual camera to follow

We want to follow the player

You can see her as 9 princess is transform

What that means is right now nothing is actually set

Specifically it's looking for a transform value

What is the transformed value that we what was the players transform value

Wants to follow

A position

Of the player

The access that

Well it's actually really simple

Are we going to do is simply drag the player

Sheffield

Is going to find the trains for value

Associated with what we were just dragging

Simple

Save it and press play

No man is an amazing guys

I know what you're thinking

Is a lot easier than I thought and that's because making games doesn't require you to code everything

I like to be involved in a lot of the code that's 10 of the way my brain works I like to have a good understanding of the code

What is the camera movement and also the physics object that we copied and pasted from universe website

You know I like those things just to be pre-made so not to worry about him

So there's one thing about the

Camera that actually like to clean up a little bit

I don't want to play any smack DAB in the centre

The camera

So what you can do is actually go over to your cinemachine virtual camera

Go to the component here and take a look at the inspector

We can actually

Shift

The why

Of the screen a little bit too bad here we just make it 0.65

Ok so that's good

Now usually when you exit play mode

Values going to go back to its original

Because there's this little box here called save during play

Is a convenient way for you to actually manipulate values

In when you exit play mode you can see it's PT 68 when we exit play mode in actually saves that Valley

Medical

Turn around this 2.65

0.65 5-year and hit save so now we have a camera

Follows the player with a little bit of Ayr set

And even if I jump all the way down

Cameras get a follow the player at least he's going to try to the players falling a little bit faster

And what the why did happen

Allows for

So that's the camera it's really that simple

It's so let's go ahead and start creating a world we have player movement we have jumping we have the camera

In the player

So what are we just go ahead and start creating a world

Why time I'm starting the Creator world I like to make it much space as possible

We'll have some fun

Tell

About something like this

Alright so we can start paying around member painting is clicking the middle or the right of your mouth

Zoom using a scroll wheel

Just a quick refresher there

Select our ground one

We can copy and paste it all over the place if we wanted to create a world

What would I be careful here

Anytime

NY Times has a really good Bulls Tom

Anytime you stop copying and pasting an object

Pink

Should this be a prefab

Remember a prefab is something you can use over and over and over again and if you make a little tweet to it

Is going to eat every single one that you pasted

Somehow wanted to actually make this a little bit more rectangular maybe I wanted to do some

Like this

And I wanted it to apply to every ground in the game

Ego

Crap I should have made it a prefab

So what I'm going to do is

Make ground 1 a prefab

Does create a new folder

I'm going to create a new folder called prefabs

Let's make sure that beds

At the root level here

In holiday do is drag round one

Prefabs

Can you see the return blue and now we have a prefab

It means that I can copy and paste

Ground

All over the place

Create this move a little bit here

You know of an even better way to do this is actually to select the rectal

Indus start copying pasting

It always feels like you're in a

Visual editing tool like illustrator Photoshop

And how we can even rotates on that one and two

Very cool

Just create

Our world

Maybe have a little gap here will danger zone

And just pay some all over the place you can see they're all blue here

So what is that mean well if we actually could this area here for any of them it's going to take us to our prefab

Meaning the original

The original Game object

That informs every other game of liquid just pasted

What it should look like if I wanted to I could actually go you know what

Can I want this to be a little bit long

I can click the back arrow

Save it and look all of them are rectangular

To go back

And again click any of the arrows in a take us to the original prefab and I seen and I never mind let's make it 1

Go back and save

Is back to the way it was

You can imagine y That's really useful again you want to be able to change every single game object

The game best way to do that is through a prefab

If you want to just change one of them

You can change one of them here

Instead of adding the root prefab you're just editing the prefab itself

Scaling over if it doesn't make sense I promise it makes sense with practice

So that looks great

Gohenry play and see how the game looks

Bring this up a little bit

That's awesome we're going to selves

Decent platformer not in crazy hair but it works

In the cameras following the player

Very.co

I just a quick tip here guys if you ever see random errors being thrown

Now you're working on your game

I keep getting thrown every time I paste a new object

I'm sure there's a solution here for why bees are appearing

But this is a part for the course working with unity so don't panic if you see random errors

Being thrown in your console window we can simply clear a mouth we keep pasting in

Are you going to see these errors appearing and honestly I don't even know why they are appearing

But just remember you don't have to pay NIC

You can hit play and everything is working ok

Is probably some weird bug with the recent version of Unity in a proper be patched infix

With an update

You turn me Google what the problem is in my case and probably going to Google after recording this video to figure

What's going on but

All in all

Don't stress too much just borrow for the course with unity

We can just copy there's paste it over here maybe

Scaling up

Is it again

Scaling app

And if we hit play here

You notice that we can run to the right

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

And there is a boundary of a here

Now one of the camera stop

Abbas boundary

Actually really simple

Will add a camera confiner

To our cinemachine virtual camera

Call Dan extensions if you go all the way to the bottom here

Canal extension

We can add a confiner

Collapsed

It says a bounding shape is required

What are that means it needs a collider2d

What is the recall

We have a collider2d

Underground

Prefab

Actually just create an empty gameobject and add same type of Collider

To this empty gameobject when you can see a default

To adding a pentagon

To our game object

And we can actually just Collider

By clicking the Edit Collider button and just moving shape

Excel

So basically what we're doing is a drawing the boundaries

Or a camera

So we can have a go pretty high

And if it isn't like this I don't really need this if I press control and holiday

No second click in deleted

Now we have

4 points

And what if we want to the camera

To follow

Just above

The squares

I mean we don't have to

Copy and paste the squares more below in create more game objects

It will look as if there is a buildings below even though

What we can see

Is actually nothing below the camera boundaries

Play here and see what happens

The Glitch

What is that what's going on

Well

What we just created is actually a Collider right

So we can think about it

Players actually stuck

Inside of this Collider and it doesn't know what to do

How we fix that

Exit play mode

Inlets

Click on our

Polygon Collider game object here

Actually said it to his Trigger

Where is that a true

That means there is no longer actually going to collide with anything rather it's just going to be a Trigger

Play

There we go OK cool looks like the players able to fall through the collider that's great

Looks like the camera is an actually following the rules

Polygon Collider

That's because we forgot

How to drag car

Lighter

The bounding shape 2D

Just dragged out in in now the camera is going to be stuck within the confines of this

Collider

Let's be sure to rename a gameobject just for saying to be really cold this

Polygon

Camera

Collider

Can I put spaces in between each word that's fine and I like to drag things next to each other

We are main camera a virtual camera and we also have

The camera Collider

You better word is probably

Confiner

Ok let's see what happens

What site for camera

Can move in the extraction

Sky Direction why is that

That's because the camera if you think about this white box here

As basically being a Collider in itself

You know that corner is actually getting caught

On this portion here

So what we need to do is actually just expanded down

The carer has a little bit more wiggle room

To move around

How to delete a couple of years

Vertices year cos it's getting a little bit messy

I think a shaped like this is probably just fine

UK

What is does mean is we probably need a fill in these holes a little bit so I'm going to use the recto

I just drag him over little bit

Sometimes you do need to do a little bit of walking like this

Just to ensure

Play feels like there now

Really flushed out world

Ego

A little bit of a way of doing it but I think you get the point

Alright

So now we have our polygon Collider

And we should have plenty of room here but

Let's just move this after so little bit as well

Plenty of room for the camera to move

Go ahead in hip play

Tell us a camera stops where we needed to that's great

And if we don't fall down

The player will keep falling

Camera stop when you can see that the player is

His phone fast I can't even find them but he's falling in the camera has stopped

That's how we can find them

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