(NEVERMIND) FNAF camera glitch when movement witnessed

I am making a FNAF fan game. I need the camera to glitch whenever an enemy is seen moving, like in the games.

What I want it to do is that when for example cam4 is visible and variable enemy1position changes the camera glitches (show “glitch”, animated sprite)

However, it seems that its not possible to check whether a variable has changed.

The program generates a random number every 5 seconds, if that number is below the animatronic’s level, the variable position of the enemy goes up by 1