Thanks for playing, glad you had fun with it!
Yes, you have to shine on them with the magical light for a second or two before they get warned, although the "hitbox" of the light itself should be generous. The longer you shine on them - the more they are "warned" and the more visible they get. When they are fully warned (visible) they blow a horn and change direction to the left-top sea, avoiding the rocks.