Hi everyone! This is my custom "find distance" block! It uses Pythagoras' theorem to calculate the distance (in pixels) between any 2 points. This project also includes a second "Find Distance Between Sprites" block that can find the distance between any 2 sprites if you input their name. To use this in your own project, just drag the custom blocks into the sprite that you wish to use them in. Then, after running the function, the "DISTANCE RETURNED" variable will contain the distance between the 2 points/sprites.
Thanks to Pythagoras for making his theorem