the black square follows the mouse and the gray square is constantly set to your mouse position. i don't know how but the gray square have bouncy pads on all four sides, so watch as the black square is endlessly bounced in the opposite direction.
getting tired of circles, time to work with squares and rectangles. this challenge in particular checks if the black square is closer to the gray square on the x-axis or y-axis and check which side the black square touched on the gray square. if the black square moves too far into the gray square however, it'll teleport! fixing this might require time as a variable. previous coding challenge - https://scratch.mit.edu/projects/154881460/