From Gameplay to Cutscene and Back Again(Game Dev Day 64)

Jack Leavey
Jan 19, 2022

--

A cutscene is used for the player to gain the keycard to access the vault, their primary goal in this level.

Cutscene of the keycard accruement.

In order to trigger the cutscene, I used a collider object around the desk that will activate the cutscene gameobject once the player enters its zone.

This collider box checks for the “Player” tag to activate the cutscene.
Simple code; only needs OnTriggerEnter!

During the cutscene, I disabled the player character gameobject (the one the player actually controls, NOT the player’s model in the cutscene), then on the last frame turned it back on through an activation track.

Activation Tracks can be used to hide undesirable objects at key moments. You can use the fade the black to sneakily re-activate them.

--

--

Jack Leavey
Jack Leavey

Written by Jack Leavey

I am a software engineer with years of experience branching into game development, specifically in Unity. Follow along for guides on creating game mechanics!

No responses yet