Journal 73 — Unity’s “The Great Fleece”, Add Sleeping Guard Cutscene
Objective: To add the interaction with the sleeping guard
In “The Great Fleece”, we completed the security camera detection, movement, and changing colors on detection. Now we want to trigger the sleeping guard cutscene where Darren sneaks and takes the guard’s keycard.
To start, here is the collider to use to trigger the cutscene. Make sure the collider is set to trigger, and there is a Rigidbody added.
Here’s a simple script update to trigger the cutscene, and the results.
As you can see, there are a few issues: Darren is still visible in the cutscene, the sleeping guard game object is mostly hidden but overlaps with the cutscene, and the camera doesn’t switch back to the previous overview angle.
We can fix this in Timeline, by setting Darren and the sleeping guard game objects as inactive during the cutscene and make active at the end, and we need to set the entire cutscene inactive at the last frame. Let’s start with the sleeping guard game object.
Now let’s make the cutscene inactive.
Then let’s make the Player inactive.
Finally, here are the results.
Thank you for your time!