# drawing a line?

hertzcastle
Member Posts:

**11**
hi!

how do i draw a line from one set of x, y atrributes to another? i'm guessing i'll need a line graphic (no problem if it has to stretch), but how do i rotate it correctly?

thanks.x

how do i draw a line from one set of x, y atrributes to another? i'm guessing i'll need a line graphic (no problem if it has to stretch), but how do i rotate it correctly?

thanks.x

## Comments

1,7141,400x1 = 0

y1 = 0

x2 = 50

y2 = 50

`VectorToAngle(x1 - x2,y1 - y2)` = 45

112,090And

Magnitud, to measure the distance betwen poitns, so your line will be in the Middle ( Thats his position) And Height will be Distance /2

2,090