Fine-tuning our character
Now that the Cucumber Man is in our game, we can start experimenting with the character to ensure it looks and behaves the way we want. In this section, we will look at the following refinements to our Cucumber Man:
- Motor controls
- Scale
- Capsule Collider
- Input controls
Fine-tuning the motor controls
You can put the game into game-mode and use the keyboard inputs detailed in the previous section to experiment with the Cucumber Man's movements. One of the things you might have noticed is that the player character does not seem to move very fast. Of course, this is relative to the size of our terrain and the character's size. Let's look at how to increase the speed of our character by reviewing the associated script.
The following code snippet is from the PlayerMotor.cs
script that you imported with the Cucumber Man. This snippet is the first part of the script, not the entire script. As you can see, there are variables for JumpPower
, MoveSpeed
, and RunSpeed
. Those variables...