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
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
Russian
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
Before we go further with developing our games system
Let's take a moment to improve the feel
The game a little
So there's a couple of problems that I've noticed
And you probably know this this is
One is that the player movement feels very herky jerky and robot
It doesn't feel Superdrug
To control the play
So that's one thing that we're going to address
Another thing that we're going to address is the camera is dragging
Just a little bit too much
So let's go ahead and improve the responsiveness
The camera in also we've got enemies
Colliding in overlapping with each other
So let's fix those things before remove
Any further
So let's start with the camera so I'm going to go to my main click into my camera scene
And then open up the sky
And I am going to change this smoothing variable
2
20 salt where this is
Does
With negative delta x
I'm gonna change that 2 x 20
Subtitled by online-courses.club We compress knowledge for you!
And then see how I feel
Ok that feels mum
Better to me
And then I'm going to go into the player so control
Photo open up
And you can search for the player or just click it in the list
And then open it up by double clicking
So what were lacking in the players
Controller
Is
Acceleration
So how are we going to add acceleration while Mr Claire other can't stop the top were going to call
Acceleration
Smooth
Unless use something like 5
To start
So in your process method at line 16 on my Sky
Which may be different for you
We are selling a velocity directly to the max speed
Immediate
Instead of accelerating towards earth
So how can we do an acceleration what we're going to use the framerate Independent again
Because I think that feels really good for movement and acceleration
It's also remarkably see
If you were using a constant acceleration that you were
Do you need to do a bunch of checks to make sure that you're not exceeding the max speed and
Doing some climbing
And I just
It feels good and it's simpler to use the framework independently
Acceleration
So I'm going to
I'm going to change this to
Underscore velocity
Online 16
And salt wasting our target velocity is our Direction X
What we want to do
Is we want to take
Current velocity
So again this is a property of the care two by two
Business a current velocity is equal to
Velocity
Dart
Linear interpolated
So
Here we want to live up to the target velocity
And our weight Factor is going to be the same thing as we used before
1
Miners
Exp
Negative Delta
Time
Accelerate
Ok so let's give it a shot
Alright so now you should see that the player is sliding around a little bit
The movie
Does feel smoother general
But it also feels a little bit more
Sluggish right this is on
Too much
Or too little acceleration song
I'm gonna change
The acceleration smoothing to something like
15 instead
Going to see
Still will be two slightly so I'm in a bum
225
Awesome before I change the accelerations within a little bit more I also want to turn down the maximum
So I'm gonna go from 200 max speed to 150 max speed
You can definitely feel free players numbers as you want
But
If you want to leave room for example speed upgrades
It's probably a good idea to turn down the speed little bit
Samuel turn it down to 125
Ok so that slow down the game quite a bit which I think is great
And I'm going to open up my basic anime control shift Al
Basic anime
I'm going to change this max speed down at 4
So just slow everything down
And that might even be still little bit too fast I'm going to go down to 4
Ok great and that slow down makes it just more likely that our abilities are going to hit as well
So now with all of this and place you should start to see or game is starting to come together
And the final thing to do is to make sure that the enemies cannot overlap each other
So we may change this in the future but for now that you see where to do
Is to go to a basic NI
And make them able to collect
With each other
We can do that by using the collision
Mask and the collision layers
So what we're going to do is we're going to go to our
Project settings we're going to go back to those Leia name
All the way down till you see you later name
Got a 2D physics
Delicious name Leia for
Enemy collision
Which may be a little bit redundant but we just need a name that we can easily identify
And then it go onto your mask of your basic enemy
Turn on enemy collision in The Mask an enemy collision in
Leia
Try again make sure changes on the character body to die
And let's see if that is working
So no enemies should not
My sword is killing enemies too fast can't see if it's working
Ok yeah so you can see the enemies or not
Punching up anymore they're colliding with each other
White in this group down here
Which is good
So we just don't want the enemies to be colliding to match with each other
And you never said are all still able to move in that direction
In the cracks
Because the
Are using the moving slide which means that
They are colliding with each other but preserving the velocity
So they just can't like shifting around on each other
Any final improvement that we're going to make is we're going to change the motion mode of our character body 2 days
For the player and for the enemy
So what does motion Motors
Do
Is basically change how collisions are calculated
I go to my players
And I clicked on the note for the play
We see under the character body to die in the inspector the motion mode
Round
Now
Is base good changes the behaviour of
The character
When
You are colliding with the
Grounded is useful for 2D platformers when you're using gravity at
Because this will allow you
To work with slopes and
Snap to the floor in all of
That's good things
Wear top down
Right there is no grave
In our game is a real change this to motion mode
And what does is that changes the collision behaviour
To handle
Situations where we don't have gravity and where we just can't lie
Free moving around
In the world
So we're also going to make that change
In the basic enemy so I can open up a basic anime with control shift
And then search for basic anime
Click on the route now
And change that to flooding as well
Can I play the game
And everything should be looking smooth
Everything should still be working as expected
And you should be noticing that the game is already feeling much better
Even with just there
Fuel
Change it
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.