Goal: Creat the Point & Click function to control the movement of the player
- Create a Scripts folder in the Project tab to store all the upcoming scripts
- Create a Player.cs script and attach it to the Player gameobject
- 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:
- 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:
- At 2:40 sec, the second clip should end;
- Extend the 3rd clip to 9:00 sec
- Extend the 4th clip to 15:05 sec
- Shorten the Darrent Anything else clip to 39:98 sec
- For the sleeping guard clip, drag the first animation frame to around 40 sec
- End the sleeping guard clip to 48:56 sec
- Move the ending frame to 47:43 sec
- Blend the next security card clip
- Blend the vault clip to the previous security card clip
- End the vault clip at 53:40 sec
- Extend the last clip till the end
- 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.
- Create an empty game object, named as Audio, and child it under Intro Cutscene.
- 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)
- 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.
- 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.