This is code for tracking hovering in/out of a sprite and acting on it.
Tutorial from the course Scratch 2.