Lines
Posted:
Fri Mar 18, 2005 9:29 pm
by willg101
Is there anyway to draw lines between two actors?
Posted:
Sat Mar 19, 2005 12:56 am
by Fuzzy
use the pixel plotting command; (putpixel I think). to have it draw out a nice line, google "bresenhams" line drawing formula. He was/is a scientist who developed a simple way to draw lines way back in the 60's. The coding is ultra simple, and an excellent little lesson in programming.
Note that while the standard bresenham formula is simple and efficient, there are ways to improve upon it. Perhaps you will discover how?
Posted:
Sat Mar 19, 2005 1:05 am
by makslane
Just use the moveto, lineto functions.
See the tutorial: Help -> Script -> Drawing Functions