Game Development Reference
In-Depth Information
Adding new features to the
CharacterControl and CameraControl
scripts
In this step, we will adapt and add new features to the
CharacterControl
and
Cam-
eraControl
scripts that we created in
Project 4
,
Add Character Control and Animation
to Our Hero/Heroine
. We will add the script to control our character's movement by gradu-
ally changing the speed from
idle
to
walk
and
walk
to
run
. Then, we will add the ability to
switch between shooting and movement, which will also change the camera's view posi-
tion.