-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Unity 4.x Game Development by Example: Beginner's Guide
By :

Let's correct that little issue of the nurse careening sideways and backwards through the hallway by adding rotation values for the runner
GameObject, to make her face the proper direction.
In the Animation window, go to frame 100. This is 20 frames before our second keyframe.
Click on the little button with the white diamond and plus symbol—the "add keyframe" button—to tell Unity to remember the runner's position/rotation/scale on this frame.
Go to frame 120.
Enter a Rotation.y
value of -90
to face the camera down the next hallway.
Move the runner down the second hallway just a bit, maybe to Position.x 6.0
, to make the motion slightly less robotic.
Go to frame 220 and add a new keyframe.
On frame 240, rotate the runner
to Rotation.y:-180
to aim it down the third hallway.
Keep repeating these steps through the rest of the animation. Set a keyframe 20 frames before the existing one, and then move to the corner keyframe and set the Y rotation. Use -270
and...
Change the font size
Change margin width
Change background colour