Hello guys.
Welcome to the video.
In this one I want to show you another polish effect I would like to do.
And this is more of an example of what the Polish itself like.
What we're going to do in this video is pretty simple and we did it before, but it's just another way
of using it so you know how it could be done.
And maybe this will open your imagination if you struggling with that.
So let's go here and let's make a I mean take a prefab of the enemies of the rhino.
So I'm going to place Rhino over here then.
Let's go to prefab.
Let's take, um.
Thus the fix.
I'm going to place it at the nose of the rhino and also on the rhino itself.
Let me add.
Um.
Impulse.
In impulse.
Source.
Like that.
Okay.
So we're going to do bump.
I'm not sure if we need to change velocity or we need to because we want to have the facing direction.
But other than that.
Yeah.
We're going to change velocity.
Other than that, we're going to keep it as it is.
Let's go to enemy right now.
I'm going to make a header.
Um.
I'll just do effects and we want to have reference to private particle system.
Does the fix and we want to do reference to impulse.
Source.
Impulse source and we want to have serialized field private vector tool.
Impulse power like that.
Let me do close all but this.
And I just want to double check this on the camera manager we used.
Yeah, basically the same.
So I'll just take this from here.
Copy it.
Also, we could just call the method of a screen shake, by the way.
Uh, but let's say you want to set up different shake effect for the rhino.
Maybe you want it to be of a different power.
So somewhere above I'm going to make a method.
It will impact.
It should be void.
Void.
And let's place those lines of code.
Instead of shake direction and shake velocity, I'm going to use, uh, impulse power.
Dot x multiplied by.
Uh, facing direction and impulse power.
Dot y.
Also, I think we can hide these cinemachine impulse.
We don't need it.
And then we're going to do impulse source.
Uh equals to get component of cinemachine impulse source in the start.
Okay.
Now let's go here and also do does the fix dot play.
Nice.
Now we can go to the place where we hit in the wall.
Wall hit.
Let's go to definition of this.
And over here we're going to do.
It will impact like that.
And this is the example of a game polish.
We just did small things from features we had before and now Rhino will um.
Lady dust effect.
It will shake the camera a little bit and it's going to look.
Better, it will improve the game feel overall.
Let's call the play mode.
We need to.
Oh, there is an error, I can see.
What is that?
Once that instantiate skin manager, why can't you instantiate Skin Manager?
The object you want to instantiate is null.
Okay.
Um.
Once more.
I've seen it here.
The object you want to instantiate is null means we instantiating nothing, and probably over here it
is empty.
Okay.
Hit it and let's fix it before we test the rhino.
Let's go to asset scene level one.
Save it.
Here we have working game manager and we're just going to apply overrides.
Now we're going to go back to level three.
And it is fine.
Now we can go to play mode again.
Okay.
No errors.
Let me try to.
I grow this rhino.
He's going to turn.
And then if I go here.
Oh, that was too much.
Way too much.
So strong why it was so strong.
Oh, okay.
My bad.
We did the wrong scripting.
I have a variable on the Renault.
Impulse power and impact power.
So let's change this to camera impulse.
And.
Direction.
So the name is different and we cannot confuse it like I just did.
Where is the method?
Over here we're going to use.
Uh, camera impulse direction.
Camera impulse direction.
I'm sorry for that.
Let's save this.
Let's go back.
And try again.
And also I've seen that this area over here was visible for the camera.
So maybe I'll just take some piece of ground and I'll increase it like that.
Just so it's not empty there.
Just in case.
Let's go.
Um, here as well.
And I like the game now, you know it feels a bit better.
Also, if we play the animated background on this level and there is sounds and the camera is moving
a little bit like you see now and Rhino is running, everything is so cool and alive, I love it.
Hey, boy.
And he's like, boom!
He did not shake the camera.
Why?
He did not shake the camera.
I know why, because I changed the name of the variable and I did not assign new values over here.
Let's do 0.70 5.75 or maybe 0.6.
Point six.
Let me see this again.
Nice.
Very nice.
This makes it much better.
Really, I love it.
This makes it much more alive.
Hey, boy.
You so good.
Yes.
Okay.
So that's the kind of example of a polish.
You see how better it is now.
And I'm going to show you a couple of more examples of different places where we could improve the game.
But overall, you would have to think yourself where the game could be better and do some changes to
it if you want to.
But if you don't do, it's fine.
Game is pretty as it is.
Uh, let's do point six here and let's take the Rhino and apply override so it has dust effect and other
things.
All right.
Thank you so much for paying attention.
Let's go to the next video.