Go Into The Project
This uses the same logic as the Scratch Distance Block, but I made it work for X and Y values.