During February 2019, I created a cutscene in Unity. Games are full of cutscenes, so learning how to do one would be very beneficial.
The cutscene in this video pans the camera to a wall opening up, allowing the player to progress. This is done with the activation of a switch, which is pressed when hit with the player’s fist; this action begins the cutscene. Once the path has been opened, the player regains control of their character and their usual viewpoint is restored.
This was accomplished by detecting if the player’s arm is colliding with the switch while the player is currently in a punching state. If these conditions are met, the switch will sink into the wall and the cutscene will play, showcasing the door opening.
This system works mechanically but visually it is fairly simple. In the future, I would like to tweak the player’s movement during the cutscene to actually show them hitting the punch (which also aids in stopping the player from hitting the switch from the side and the event still playing, which looks awkward), as well as making a more satisfying opening door. Additionally, having the player face the direction of the door so the player could start heading in that direction immediately after the cutscene ends would be a beneficial change too.