ID:835505
 
(See the best response by Oasiscircle.)
Code:


Problem description:
I am trying to create a certain verb, which activates your ability of creating a straight line, by clicking on one tile and then clicking on another, which creates a line with correct slope(if there is a certain library that demonstrates this, please link me to it).
I attempted it using the straight line equation:
y=mx+b
The slope wasn't a problem either
m = (y1 - y2)/(x1 - x2)
But here I come to an end, no idea what to do next. I would appreciate any help.
You didn't get what I mean, lol.

Visit the paint, choose the line drawing, that is what I want.



Take a look at the image, using the straight line tool(2), I can click drag from a point to another to create a straight line with correct slopes. Such as the 3 drawn, what I want here is the ability to create a straight line between two points(clicking one then the other) and do whatever action I need(in this case, Blend()).

--

Actually, you got what I meant, but I still cannot just put objs to the right/left, because I am unable to get the true measurements.
Best response
Kunark's Line Drawing Library is probably what you want.
This is exactly what I needed, thanks!