Discuss Scratch

sathvikrias
Scratcher
500+ posts

Distance/direction to x: () y: ()

gosoccerboy5 wrote:

Go ahead, the character limit is 200, 000. Don't be afraid to be constructive!
here's one of the reasons why: an easy workaround for a (pointing towards ()) block
SpinningCube
Scratcher
100+ posts

Distance/direction to x: () y: ()

Support, as mentioned on other posts, I would find many uses for this (usually just to point towards some arbitrary position), and this is even better than the full block, although a more general atan2 block might be preferred for my uses.

Also the direction to sprite reporter is also a good thing to go with it. One use of that was in a 2D lighting project I was working on.
hiPeeps124816
Scratcher
500+ posts

Distance/direction to x: () y: ()

Semi-support, I probably would just make a sprite, hide it, move it to that position, and use the
(distance to [sprite v])
block. It isn't overwhelmingly complicated that way. But, when I was new, I didn't know where the clone blocks were located (I once thought they were in Looks), or what the distance to block did. Also, the workaround I said may not be overwhelmingly complicated, but it's overwhelmingly inconvienient and annoying. This block could simplify the process. Also, I'll say that this block would be much simpler than its not-so-simple workaround that many people could potentially say no support to:
define distance to x:(x)y:(y)
set [distance v] to ([sqrt v] of ((((x position) - (x)) * ((x position) - (x))) + (((y position) - (y)) * ((y position) - (y)))) :: operators)
Summary in case you don't want to read my essay paragraph: There is a workaround that's relatively simple, but this block simplifies stuff by a lot.
dogeiscut
Scratcher
500+ posts

Distance/direction to x: () y: ()

Full support!

Why I support:
I find myself needing this all the time for game projects, I end up using complex and annoying work arounds.

Questions:
  • None

Powered by DjangoBB