March 2018
Beginner
336 pages
8h 6m
English
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 are created in the code and their ...
Read now
Unlock full access