How to make enemy get closer to the player the video ( jumpscare ) plays

How can i make enemy get closer to the player the video ( jumpscare ) plays

like this games
When the ghost catches you jumpscare video plays
1- Pacify
2- Devour

I hope there is a video explanation of how this thing works

I dont search for video but I can provide you document. Use Matinee for such stuff. This will narrow your search

Click here for documents