Initially they were meant to get scared away when you shine your light at them.
But they kept returning and cornering the character so I just made them chase normally.