Is there any way of hacking this block?



I want to hack a block like:

Is there any way of doing this?


What u mean by hacking? Actually making it work?


umm only thing i can think of right now is values, sin and cos?


Kinda... yeah...

I dunno what you mean


like using values for detecting and then using the sin and cos for positison


There is a way, it's the point towards block with some parts removed, basically. (Adding Later)
EDIT: NOT BLOCK, ability
EDIT2: It is

d is the distance
x2 and y2 are the x and y of the second object
x1 and y1 are the x and y of the first object
(reversed, I know. Math is weird that way)




But you can use values and set position blocks to do that


Do you want some way to measure the distance from one object to another?
Not quite sure what you mean :wink:


I have a faint idea of what ur saying...
can u explain, @Ihasfluffycupcakes?


yep, @Giraffedolphin26


I really need help! :stuck_out_tongue_closed_eyes:


Thx, @Fishyguitars, but is there a simpler way of doing this? I understand it, just that's I won't be be able to remember it! :sweat_smile:


I will try to explain it tomorrow


I don't think so, math is that complicated as well :confused:
(Plus making this is difficult, you have to scroll through values and more..)


it's the square root of x2-x1 squared plus y2-y1 squared?


yeah! :smile: 20202020


Hm... @system just edited my post... Whaa???
They resized the image... WHY, OH WHY?!?!?!?


that should be easy enough to remember...
(5 seconds later...

I can't remember it!)


I just made a test project:
It just measures the distance between the square and the circle.