New block idea: “distance from”



Does anyone else want a “distance from” block? That would be a great addition to the app in the next update!


Well, I think that’s just kind of doing something that you can already do using the Pythagorean Theorem.
Example: Set width/height was a new block that gives you the ability to do something you couldn’t do before. If a Find Distance block gets added, there’s already a way to do that (as mentioned above), which just means no one will really care about it.
These are just my opinions, though. No hard feelings.
Oh, and welcome to the forum! :smiley:


Welcome to the forum, @Ukuleleman24!


Thx man! I didn’t even know that existed!


Welcome to the froum @Ukuleleman24


Given 2 objects “A” & “B” with the x & y positions abbreviated Ax, Ay, Bx, & By

The distance between them is calculated with

√( (Ax-Bx)^2 + (Ay-By)^2 )

That’s from Pythagorean Theorm as was previously mentioned.

Although just because the calculation can be done manually, that doesn’t mean a higher level Hopscotch block is automatically ruled out.

For example, THT recently added When Is Not Pressed. This could be done manually, but they still saw the rule as value added. And, personally, I think they should include a “Point Towards” block even though it can be done with Set Angle and some math.

The fact that you’re asking for a “Distance To” block shows there is at least some need :grinning:

Happy coding & don’t be afraid to ask for new features and/or how to accomplish the same end result as is.




Sounds great! It could be helpful for when you want something to happen at a certain distance.


As @ThinBuffalo said. a^2 + b^2 = c^2, or difference between x&y coords
Also, search before you post. I thought I already saw a topic like this


they’re new, mate. calm down


Oops, that kinda came out rude

Sorry no offense to anyone here