There is a red dot that goes to your mouse pointer. The distance between the black dot (not movable) and the red dot (movable) is shown on the variable "Distance." If you want the exact distance, there is a "Exact Distance" variable displaying that.
This is made with one sprite, and scratch only allows you to see the distance between two different sprites. This strategy used in this project can be used for one sprite, or two. You may use this in your projects, with credit. Please don’t say anything about this, since I’m just in fifth grade (as of 2024-2025).