click and hold the mouse to drag the yellow thing. Use the scripts inside in your projects. Yes, I know that there is a block for this, but this is just a bit of fun experimentation.
The block inside uses the distance formula to calculate the distance between the sprite, or anything really, and another point or thing. Then it divides that value by two and changes the sprite's X and Y until the distance is equal to 0.