Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranî)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
So we don't need any scripts currently if you have any scripts written
Especially if you're working on the
Unity basics tutorial
In the previous section
I mean that you can go home delete all of your scripts that are in the scripts folder here
The first script
That we need to you
The foundation
For this
2D game kit script that is on unities website
Image tutorial section
And the reason why we're going to take this and copy and paste it is because
They're certainly dozens of scripts that work in array
From scratch disk from scratch is because quite honestly after a decade of making games
I have never been able to write a precise
Queen
Smooth physics object script
A script that allows you to move the player smoothly across various surfaces across slopes
And not getting certain bugs and glitches
Subtitled by -♪ online-courses.club ♪- We compress knowledge for you! https://t.me/joinchat/ailxpXoW3JVjYzQ1
It's a really difficult script
I don't understand it and I don't expect you guys to know how to do it from scratch
Either
Go to Unity 2D controller
Tutorial
LEGO stuff here but all we need is the physics object script
And there's an entire package you can download but I just recommend simply
Copying this physics object script here
And then creating a new C Sharp
We're going to call it exactly what
Unity tutorial sets physics
Opening up in Visual Studio
Delete
And paste
That script
Yeah
Are we going to get back into unity
It looks like everything is good to go
So this is the only script work in a copy and paste
Entire 2D game kit
Everything else is going to be from scratch
This is going to be the Foundation of the player moves
It's a great Script I'm really grateful to Unity for their tutorial
On this if you wanted to dig into this you can certainly do that
But for now guys I'm just going to copy and paste it and we're going to move forward
Really quick guys we just want to add a minor change to the physics objects
This change
Is it going to make a lot of sense to you and I'll be honest it doesn't make a lot of sense to me either
Again that's something you learn as you're making games
Codeine
You'll find a solution and lining you don't really understand it that's ok
When working on the physics object script
It's important that there is so much complicated stuff
When it comes to platforming in physics
And I honestly I don't see the point in breaking down this
Kind of stuff
So all you ask you to do right now
Is just look at the next section there is a line of code
How much is a copy that line of code
I just want you to paste it over top
Of this for Loop
This is called a for loop talk about for Loops in this course
In the future sex
Now I just want you to
Paste over this
With that line of code
So just control the over top of it
And now we have a new line of code inside of a positive outlook scripting again it's inside of the movement
Function
And inside of the ear
Distance is greater than minimum
Just paste over that first for loop it's below the hip bottle
I don't know what the Script means I'll be honest with you it's been 10 years
Of making games and I don't even know what this means and I don't care I just tell it's going to work
So we're just going to say that out
In all this is going to allow us to do
Is Joe
Through
Platforms
Do something in unity called a platform effector 2D
And it's a component you can add to there is platforms in your game
And if the Script finds this platform effector component
On a platform
The player will be able to jump through the bottom of
That way we don't bother head on platform
So just go ahead and Pace that
Again to be absolutely sure
YouTube replacing this line of code
I just copy that code
And paste it over top of this
It's inside the physics lab
Inside of the movie
Funk
Inside of the Earth distance is greater than minimum distance
And just blow
The hit buffalo stack
So just highlight this and paste that new car
Now we'll be able to jump through platforms
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.