Project update: security cameras

Andrea Alicino
2 min readJun 5, 2021

--

We have arrived at the second part of the corridor, now our Darren, the player, has to pass some security cameras without being discovered.

To implement the motion of the security cameras, I made use of animations again instead of doing it through code.
It was enough to record the full-motion animation in one direction, uncheck the “Loop Time” checkbox and generate two sequential states in our Animator tab. This allowed us to generate a smooth left and right motion.

Finally, I added a script very similar to the one used by the guards to identify the player.
The main purpose is the same, to recognize the player through the collider of the light cones projected from the security camera and launch the “Game Over” cutscene. Compared to the guards’ cutscene, we change the color of the light cone and block the movement of the colliding security camera.

To avoid that during the cutscene there could be two players, it was enough to use the timeline to keep the player deactivated during the cutscenes.

--

--

Andrea Alicino
Andrea Alicino

Written by Andrea Alicino

Game Developer Unreal Engine/Unity. Computer science graduate. Seeking new opportunities.

No responses yet