Game Development Reference
In-Depth Information
Hotshot challenges
Now we know how to create a custom character control script, camera, and animation from
our custom script. Even though our custom script works really well with this character, it
still has a lot of things that we can improve to make our script much more flexible. Let's do
something to make our script better and much more flexible. Give the following ideas a try:
• Add your own character with a different animation, even if the character has more
than five animation clips
• Use a different method to make the camera not follow the character when our char-
acter jumps (or basically just rotate the camera)
• Change some parameters such as distance or height in the
CameraControl
script to see how the game will look
• Create more action for the character such as slide or crawl and control them by us-
ing the state machine
• Add the backward walk or run by setting the negative speed for those animation
clips and using the
_isBackward
property to check it
• Download the Mecanim Locomotion Starter Kit package from Unity Asset Store
(
https://www.assetstore.unity3d.com/#/content/7673
)
and use the
Mocap
data in-
side this package and retarget to our character