Goal: Creat the Point & Click function to control the movement of the player

  1. Create a Scripts folder in the Project tab to store all the upcoming scripts
  2. Create a Player.cs script and attach it to the Player gameobject
  3. Pseudocode for Updating player position:

// if left click
//cast a ray from mouse position (Raycasting: origin, and the hit position)
//debug the floor position hit

4. Move the player along the NavMesh

  • Pseudocode
    // Create a handle to nav mesh agent
    // In Start(), assign the handle to the NavMesh component
    // In Update(), handle.position = hitInfo.point
  • Code

1. Add a new name space to allow access to the NavMesh component

--

--

Goal: Set up the player character controller

Steps:

  1. When the player moves, there are six camera progression angles will be used to follow his movement. Start with Camera_One
  • Drag the Main Camera into Camera_Progression_Angles, and set its Transform parameters the same as Camera_One
  • Then move the Main Camera back to the root hierarchy.

--

--

As of now, the voice-over is shorter than the clips. To make them align with each other:

  1. At 2:40 sec, the second clip should end;
  2. Extend the 3rd clip to 9:00 sec
  3. Extend the 4th clip to 15:05 sec
  4. Shorten the Darrent Anything else clip to 39:98 sec
  5. For the sleeping guard clip, drag the first animation frame to around 40 sec
  6. End the sleeping guard clip to 48:56 sec
  7. Move the ending frame to 47:43 sec
  8. Blend the next security card clip
  9. Blend the vault clip to the previous security card clip
  10. End the vault clip at 53:40 sec
  11. Extend the last clip till the end
  12. Add noise to the last clip to make it less still

--

--

With the scenes set up, this post will add a voice over track to make it alive.

  1. Create an empty game object, named as Audio, and child it under Intro Cutscene.
  2. Create another two empty game objects: VO (voice over) & Music, child them under Audio. (Each cutscene will have the Audio child to host the audios)
  3. Add Audio source components to VO & Music

4. In the Intro Cutscene timeline, add an Audio Track. Rename it to Voice Over

--

--

In this animation, we will pan around the security cameras.

The clip ends around 39: 41sec.

  1. Create an animation track and assign CM Look at Security Cameras

2. Key the first frame by adjusting the pos and rotation a bit, around Pos (3.74, 6.65, -53.94) & Rotation (-13.542, 145.32, 0)

3. Pan around and key the nextframe at around Pos (-6.978, 10.919, -63.765) & Rotation (8.632, 109.252, 0)

Then it will cut to the next clip (CM Darren Anything else, ends around 43:57 sec), which is a static shot, and again, some noise can be added to make it more alive.

--

--