I know guys in this video want to offer you a challenge.
All right.
It's going to be pretty simple.
If you watched last video carefully, I'm sure you will be able to do it.
But if you cannot do it, please don't worry about it.
It's just it's fine.
I'm going to show you how to do that.
So I'm going to explain the task.
Now, you know how to use Blind tree.
And actually there is a way to make this animator a bit cleaner and a bit better for us.
It's going to use less parameters and it will be a bit cleaner in the code as well.
So I want you to use blend three for this idle and move animation instead of these two we have.
So it will have just one bland tree and transition between idle and move will be inside.
All right.
Again, I'll explain this again.
You need to make a blend tree for idle and move animation and yeah, that's it.
Just do it.
I'm counting until two, and then I'm showing how to do it.
One, two.
Okay, so let's delete these two just like that.
Brutally create new blend tree.
We're going to name it as Idle move and let's go inside of.
We need a new parameter for this because we have only one velocity, so let's create one.
Float x velocity.
Then choose x velocity over here and we're going to add motion field.
I know.
And we're going to add motion field.
More.
We could leave out to my threshold.
But I think it's better to keep everything under tight control when you need specific behavior.
So let's uncheck this.
And threshold for Idol will be zero and for the move.
It's going to be not one, but let's make let's say .0.1.
Let's see how it works, because I'm not sure I don't remember.
Now we have this term, now we have it.
Let's make it as a default, and then we're going to make new transition back from full.
To move like that with the condition is grounded.
True.
And check exit time, duration zero.
We have that, but it's not done yet.
We need to change this x velocity of the animator in the code.
Let's go back and now we can delete this boolean is running.
We don't need it.
We can delete this line of code and we can delete this line of code and just type over here.
I'll do it above because X goes first all the time.
Anim set float of x velocity to rb velocity dot x.
Save it, going to delete these spaces and let's go and see how it works.
We are standing.
If I'll run, I'm transferring to movement animation.
Jump, fall.
Move, Jump, fall, move!
Wow.
Very cool.
I'm.
I'm proud of you guys, and I'm proud of me.
Now, let's see what we can do better here.
And there is only one thing in my mind.
I don't like this name.
Run begun.
I really don't like it.
So I want to rename this, but if I'll just change my name like that, they file delete this and type
new name.
Let's say it will be later unlocked.
Then I have an error here because name is different.
This name doesn't exist anymore and now I need to change it here and I need to go change it here.
Very big headache.
So instead.
We can use a hotkey.
We need to select it and then press control.
Ah.
So.
Ah.
Twice.
Now, if we change the name, it's going to be changed across the code.
And let's type player.
Unlocked.
All right.
I like it.
Let's save it.
Yeah, I think that's it for now.
Let's go to the next video.