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
The next thing when I do is really create the player
Cisco to gameobject
Create an empty gameobject
McKenna Man City game objectives
Is the train from coronavirus
You know that it positioned in all kind of weird spots
0 Adele
I like to start
Everything is 0 and we're going to rename this game object
What's
Now a player
Is going to have certain components on it that
Milli specific to the type of game you create
The player is actually a really complicated game object
Text me when the most complex game on
In your game
And I guess that's not surprising considering
There's so many functions associated
Being a player being able to jump move collect items
Attack enemies talk to characters
Subtitled by -♪ online-courses.club ♪- We compress knowledge for you! https://t.me/joinchat/ailxpXoW3JVjYzQ1
Save
In inventory system that is probably going to be attached to your player or at least related to your player for a game manager
So we're going to start
Proclaim here
First thing we're gonna add is a rigidbody 2D
Don't have the rigid-body this is actually 3D rigidbody2d is what we need for our 2D plaits
Now what is a rigidbody
What is really cold tall anytime you add a component
This is not a question mark right here
Opening reference
Onions website
What exactly are rigidbody2d is
Ok so let's read what I read about in 2 years
Battery component places in object under the control of a physics engine
Any Concepts familiar with the standard rigidbody component carry over to rigidbody2d
The differences are about to die objects can only move in the XY plane
Is it only rotate
On an axis perpendicular to the plane
Electrical staff here
But basically
Original body
Has Gravity Falls in it moves
What type of a white rigid body is
Tax and getting idea what it is about 2 years
What is the component allows a gameobject to be effect
Assimilated
Another Force
Make sense
That sounds like something we actually had to our player
Question back in the unit
And if that doesn't make sense
Don't worry
Rigid bodies are still a little bit of an abstract concept 2 even me and having making games for 10
Just admitted by the here and there's a couple things we want to change about a rigidbody
I actually don't want to be any angular drag
Don't worry when I get really worried
What that even is just said it is here
And gravity scale
Actually we don't we want this at 0 and that's because our physics objects
Is actually going to control the gravity
Just said that 20 that's really important
And then you want to set your collision detection
Continuous
You could keep it at discrete but continuous means that it's going to have a much more precise collision detection
The ground at the end
Is my slow your game down a little bit
And
You definitely want to be having collision detection be continuous
On all of your game objects
Will you play I want to be
That continuous
What my rigid body to go to sleep and what that means as I never want it to
I guess star
Being a ridgeback
This is good
Ok game be a little smoother maybe increase the frame rate a little bit
But for our player we don't ever want to go to sleep so let's go to never sleep
And then water in preparation to be
Interpol
So you might be confused white some of these actually mean what are some of these variables were they mean
I'll be honest a lot of times I don't even know what I mean
Interpolating for example it's really hard for me to describe what that even is
And I'll be honest it's pretty abstract in my head
It's not for grounded understanding what inequality is
If you have over it it says the perfume update mode for the body
Tell that still doesn't really make sense to me so again if we just
Put the question here
Actually search ctrl F
Search the page for interpolate
I'm showing you guys this because it's really important you know Hardy jumping over to the unity manual
And no had a look for things really quickly
Nobody on earth can fully understand everything in Hindi
So you need to know how to go into the menu
This says
The interpolating is
Define had a game objects movement is interpolate between the physics updates
Useful when motion tends to be jerky ok that makes sense that makes sense
No movement smoothing is applied and that by default
But we just select it is moving it is smooth based on the game object positions in previous frame
Ok
That sounds great
That sounds like something you really
For your player because you're going to be looking at the player
All the time so we definitely not wanted to be jerky jittery
So we have a smooth so let's set our interpretation
You Interpol
Fr Richard body
Let's go ahead and do the next
That is the capital
Collider
And we're going to make sure it's not the capsule Collider 3D which that's the 3D one
There's no
3D next to her dad's actually B31
Do we need a capsule Collider 2D
What's the like that
What is a capsule Collider well that's click the question mark and take a look at what the capsule Collider is
Take the capsule Collider is a component
Init a 2D physics primitive
Meaning it's a simple shape
Back in a long day in either a Virgo or a horizontal Direction
The cast of shape has no vertices corners it has a continuous circumference
Which doesn't easily get car on other Collider corners ok so that's what we want our play Attack
Play had a capsule Collider
NR8 Square
Collider
The capsule Collider is solid to other Collider 2DS there are fully inside of the capital are considered to be in
With the capital
Are forced out of it overtime
Don't worry too much about your dad is all we really need to know
Is every room in here
We have
A nice smooth
Green
Anytime you see a green shape
That means there is a Collider
Music in collide
What other objects
If you can recall
Round 1 also contains a Collider in this case is the polygon Collider
But a polygon Collider can actually interact
The capital
The next thing you know what add to a player is a player script
Go ahead
And
Create a new script
And we'll call this new
Player
Can't player but I like to call it new
Alright
Win a drag this new player script
Do iPlayer
So now you'll see that there are four components on the player
Already the most complicated
In our scene
The transformed component obviously is added to every game object
There's a rigidbody 2D which allows for force being added to a game object
My gravity and pushing it to the left and right
Is a capsule Collider which allows us to actually collide with things without this we would fall straight to the ground
And then is also the new player script which is just a blank screen
That we're going to be raining in the next video
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.